# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetGlobalLogger retrieves an initialized global logger, or nil.
GetOrCreateGlobalLogger retrieves an initialized global logger, or creates one if it has not yet been created with ctx.
GetOrCreateGlobalLoggerEx sames as above but with the filter option.
NewAsyncLogger returns a new async logger where writes are handled in an independent goroutine Any logs sent after the context is cancelled or expired may be lost.
NewFileWriter creates a new file writer that writes to files in basePath If prefix and/or suffix are set, they will be applied to the file names.
No description provided by the author
No description provided by the author
NewMockFilterObject creates a new mock instance.
NewMockLogger creates a new mock instance.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseLogLevel tries to parse raw into a log level, if it cant, returns defaultLevel.
No description provided by the author
No description provided by the author
# Constants
LogLevelDebug is for verbose &/or development logging; omitted in production.
LogLevelError is for failures that may require special handling.
LogLevelFatal is for failures that require immediate proccess termination.
LogLevelInfo is for standard operating information that should be recorded in a production setting.
LogLevelWarn is for alerting to unusual conditions that can be handled by application logic.
# Variables
No description provided by the author
FilterUnderscore will match all namespaces except those prefixed with "_".
LogBufferSize is the size of the pending log buffer (number of logs in the write queue that can be present until log requests start blocking in the calling go-routine).
LogCacheSize is the size of the log cache: logs that are maintained before/after writing until they are dumped to a file (or other output) at the request of the user.
LogDefaultFilter is the regular expression that is used in new loggers as the filter applied to the default output (stdout).
# Structs
AsyncLogger implements Logger and handles logs from writing go-routines in an asynchronous manner.
FileWriter implements io.Writer and can be used with as a logger output to write logs to a log folder, in files named according to the UTC day.
No description provided by the author
No description provided by the author
MockFilterObject is a mock of FilterObject interface.
MockFilterObjectMockRecorder is the mock recorder for MockFilterObject.
MockLogger is a mock of Logger interface.
MockLoggerMockRecorder is the mock recorder for MockLogger.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
Logger represents a standard logger interface.
# Type aliases
No description provided by the author
LogLevel represents one of five possible logging levels (DEBUG, INFO, WARN, ERROR, FATAL).