Documentation
¶
Index ¶
- Constants
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func SetDefaultLogger(logger *Logger)
- func Trace(format string, args ...interface{})
- func Warn(format string, args ...interface{})
- type LogLevel
- type Logger
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) SetLevel(level LogLevel)
- func (l *Logger) Trace(format string, args ...interface{})
- func (l *Logger) Warn(format string, args ...interface{})
Constants ¶
View Source
const (
DefaultLoggerFlag = log.Ldate | log.Ltime | log.Lmicroseconds
)
Variables ¶
This section is empty.
Functions ¶
func SetDefaultLogger ¶
func SetDefaultLogger(logger *Logger)
Types ¶
type LogLevel ¶
type LogLevel int
func ParseLogLevel ¶
ParseLogLevel parses a log level string into a LogLevel. Valid log levels are: error, warn, info, debug, trace.
Click to show internal directories.
Click to hide internal directories.