logger

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogAggregator

type LogAggregator struct {
	// contains filtered or unexported fields
}

func GetLogAggregator

func GetLogAggregator() *LogAggregator

func NewLogAggregator

func NewLogAggregator(format string) *LogAggregator

GetLogAggregator returns the singleton instance of LogAggregator.

func (*LogAggregator) FailedMessage

func (la *LogAggregator) FailedMessage(routineID string, msg string)

func (*LogAggregator) Flush

func (la *LogAggregator) Flush()

Flush will close the log channel and wait for all messages to be processed.

func (*LogAggregator) LogMessage

func (la *LogAggregator) LogMessage(routineID string, msg string)

func (*LogAggregator) SuccessMessage

func (la *LogAggregator) SuccessMessage(routineID string, msg string)

type LogEntry

type LogEntry struct {
	// contains filtered or unexported fields
}

type LogMessage

type LogMessage struct {
	// contains filtered or unexported fields
}

type ResettableOnce

type ResettableOnce struct {
	// contains filtered or unexported fields
}

func (*ResettableOnce) Do

func (ro *ResettableOnce) Do(f func())

func (*ResettableOnce) Reset

func (ro *ResettableOnce) Reset()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL