Documentation
¶
Index ¶
- Constants
- type Config
- type Level
- type Logger
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) DebugWithFields(msg string, kv map[string]interface{})
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Debugln(args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) ErrorWithFields(msg string, kv map[string]interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Errorln(args ...interface{})
- func (l *Logger) Errors(err error)
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) FatalWithFields(msg string, kv map[string]interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Fatalln(args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) InfoWithFields(msg string, kv map[string]interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Infoln(args ...interface{})
- func (l *Logger) IsValid() bool
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) WarnWithFields(msg string, kv map[string]interface{})
- func (l *Logger) Warnf(format string, v ...interface{})
- func (l *Logger) Warnln(args ...interface{})
Constants ¶
View Source
const ( DebugLevelString = "debug" InfoLevelString = "info" WarnLevelString = "warn" ErrorLevelString = "error" FatalLevelString = "fatal" )
Log level
View Source
const DefaultTimeFormat = time.RFC3339
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) DebugWithFields ¶
DebugWithFields function
func (*Logger) ErrorWithFields ¶
ErrorWithFields function
func (*Logger) FatalWithFields ¶
FatalWithFields function
func (*Logger) InfoWithFields ¶
InfoWithFields function
func (*Logger) WarnWithFields ¶
WarnWithFields function
Click to show internal directories.
Click to hide internal directories.