Documentation ¶
Index ¶
- type Logger
- func (l *Logger) Close()
- func (l *Logger) Debug(message string, val interface{}, keys ...string)
- func (l *Logger) Error(message string, val interface{}, keys ...string)
- func (l *Logger) Info(message string, val interface{}, keys ...string)
- func (l *Logger) Warn(message string, val interface{}, keys ...string)
- type OutputLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewLogger ¶
func NewLogger( logPath string, logLevel OutputLevel, consoleLevel OutputLevel, ) *Logger
type OutputLevel ¶
type OutputLevel string
const ( NOT_USED OutputLevel = "" // Don't output DBG OutputLevel = "debug" INFO OutputLevel = "info" WARN OutputLevel = "warn" ERR OutputLevel = "error" )
func GetLevel ¶
func GetLevel(lvl string) OutputLevel
Click to show internal directories.
Click to hide internal directories.