Documentation ¶
Index ¶
- Constants
- func LevelToString(l Level) string
- type Config
- type Fields
- type Level
- type Logger
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Debugln(args ...interface{})
- func (l *Logger) Debugw(message string, fields Fields)
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Errorln(args ...interface{})
- func (l *Logger) Errorw(message string, fields Fields)
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Fatalln(args ...interface{})
- func (l *Logger) Fatalw(message string, fields Fields)
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Infoln(args ...interface{})
- func (l *Logger) Infow(message string, fields Fields)
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) SetLevelString(level string)
- func (l *Logger) SetOutput(output io.Writer)
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) Warnf(format string, v ...interface{})
- func (l *Logger) Warnln(args ...interface{})
- func (l *Logger) Warnw(message string, fields Fields)
Constants ¶
View Source
const ( DebugLevelString = "debug" InfoLevelString = "info" WarnLevelString = "warn" ErrorLevelString = "error" FatalLevelString = "fatal" )
Log level
Variables ¶
This section is empty.
Functions ¶
func LevelToString ¶
LevelToString convert log level to readable string
Types ¶
Click to show internal directories.
Click to hide internal directories.