Documentation
¶
Index ¶
- func Caller(skip int) (file string, line int, fn string)
- func Debug(msg string, args ...interface{})
- func Error(msg string, args ...interface{})
- func Fatal(msg string, args ...interface{})
- func Info(msg string, args ...interface{})
- func SetGlobalLogger(l *Logger)
- func Warn(msg string, args ...interface{})
- type Level
- type Logger
- func (l *Logger) Debug(msg string, args ...interface{})
- func (l *Logger) Error(msg string, args ...interface{})
- func (l *Logger) Fatal(msg string, args ...interface{})
- func (l *Logger) Info(msg string, args ...interface{})
- func (l *Logger) SetColorized(c bool)
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) Warn(msg string, args ...interface{})
- func (l *Logger) WithField(key string, value interface{}) *Logger
- func (l *Logger) WithFields(fields map[string]interface{}) *Logger
- func (l *Logger) WithPrefix(prefix string) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a structured logger
func (*Logger) SetColorized ¶
SetColorized sets whether output should be colorized
func (*Logger) WithFields ¶
WithFields returns a new logger with the given fields
func (*Logger) WithPrefix ¶
WithPrefix returns a new logger with the given prefix
Click to show internal directories.
Click to hide internal directories.