Documentation ¶
Overview ¶
Package log provides a logger
Index ¶
- Constants
- type Level
- type Logger
- func (l *Logger) Debug(args ...interface{})
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Detail(args ...interface{})
- func (l *Logger) Detailf(format string, args ...interface{})
- func (l *Logger) Dump(msg string, args ...interface{})
- func (l *Logger) Error(args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatal(args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Info(args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Warn(args ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) WithLevel(level Level) *Logger
- func (l Logger) WithPrefix(prefix string) *Logger
- type Options
Constants ¶
View Source
const (
FormatStruct = " %#v %s \n"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewDefaultLogger ¶
func NewLoggerWithLevel ¶ added in v0.13.0
func NewLoggerWithPrefix ¶
NewLoggerWithPrefix returns a brand new Logger with the prefix attached
func (Logger) WithPrefix ¶
WithPrefix returns a new logger with the prefix appended to the current logger's prefix
Click to show internal directories.
Click to hide internal directories.