package
4.24.2+incompatible
Repository: https://github.com/tideland/golib.git
Documentation: pkg.go.dev
# Functions
Criticalf logs a message at critical level.
Debugf logs a message at debug level.
Errorf logs a message at error level.
Fatalf logs a message independent of any level.
Infof logs a message at info level.
Level returns the current log level.
NewGoLogger returns a logger implementation using the Go log package.
NewStandardLogger creates the standard logger writing to the passed output.
NewSysLogger returns a logger implementation using the Go syslog package.
NewTestLogger returns a special logger for testing.
NewTimeformatLogger creates a logger writing to the passed output and with the time formatted with the passed time format.
OsFatalExiter exits the application with os.Exit and the return code -1.
PanicFatalExiter exits the application with a panic.
SetFatalExiter sets the fatal exiter function and returns the current one.
SetFilter sets the global output filter and returns the current one.
SetLevel switches to a new log level and returns the current one.
SetLevelString switches to a new log level passed as string.
SetLogger sets a new logger.
UnsetFilter removes the global output folter and returns the current one.
Warningf logs a message at warning level.
# Constants
Log levels to control the logging output.
Log levels to control the logging output.
Log levels to control the logging output.
Log levels to control the logging output.
Log levels to control the logging output.
Log levels to control the logging output.
# Interfaces
Logger is the interface for different logger backends.
TestLogger extends the Logger interface with methods to retrieve and reset the collected data.
# Type aliases
FatalExiterFunc defines a functions that will be called in case of a Fatalf call.
FilterFunc allows to filter the output of the logging.
LogLevel describes the chosen log level between debug and critical.