Documentation ¶
Index ¶
- type LogLevel
- type Logger
- func (l *Logger) Debug(message string, args ...map[string]interface{})
- func (l *Logger) Error(message string, err error, args ...interface{})
- func (l *Logger) Fatal(message string, args ...interface{})
- func (l *Logger) Info(message string, args ...interface{})
- func (l *Logger) Panic(message string, args ...interface{})
- func (l *Logger) Warn(message string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLevel ¶
type LogLevel int
LogLevel defines the level of logging
const ( // DebugLogLevel represents the debug log level DebugLogLevel LogLevel = iota // InfoLogLevel represents the info log level InfoLogLevel // WarnLogLevel represents the warning log level WarnLogLevel // ErrorLogLevel represents the error log level ErrorLogLevel // PanicLogLevel represents the panic log level PanicLogLevel // FatalLogLevel represents the fatal log level FatalLogLevel )
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a structure that implements logging
Click to show internal directories.
Click to hide internal directories.