package
0.0.0-20241116165817-883d5d7d379c
Repository: https://github.com/ddkwork/toolbox.git
Documentation: pkg.go.dev
# Functions
Debug logs a debugging message.
Debugf logs a debugging message.
Error logs an error message.
Errorf logs an error message.
Fatal logs a fatal error message.
Fatalf logs a fatal error message.
FatalIfErr calls 'Fatal(1, err)' if 'err' is not nil.
Flush waits for all current log entries to be written before returning.
Info logs an informational message.
Infof logs an informational message.
SetMinimumLevel sets the minimum log level that will be output.
SetWriter sets the io.Writer to use when writing log messages.
Time starts timing an event and logs an informational message.
Timef starts timing an event and logs an informational message.
Warn logs a warning message.
Warnf logs a warning message.
# Structs
Logger wraps the various jot function calls into a struct that can be passed around, typically for the sake of satisfying one or more logging interfaces.
LoggerWriter provides a bridge between the standard log.Logger and the jot package.
# Type aliases
Level holds a log level.