Documentation
¶
Index ¶
- func Debug(args ...interface{})
- func DebugF(format string, args ...interface{})
- func Error(args ...interface{})
- func ErrorF(format string, args ...interface{})
- func Fatal(args ...interface{})
- func FatalF(format string, args ...interface{})
- func Info(args ...interface{})
- func InfoF(format string, args ...interface{})
- func SetLog(logger Logger)
- func Warn(args ...interface{})
- func WarnF(format string, args ...interface{})
- type Level
- type Logger
- type Option
- type Options
- type Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface {
Log(level Level, args ...interface{})
Logf(level Level, format string, args ...interface{})
Info(args ...interface{})
InfoF(format string, args ...interface{})
Debug(args ...interface{})
DebugF(format string, args ...interface{})
Warn(args ...interface{})
WarnF(format string, args ...interface{})
Error(args ...interface{})
ErrorF(format string, args ...interface{})
Fatal(args ...interface{})
FatalF(format string, args ...interface{})
Type() string
}
type Options ¶
type Options struct {
Level Level
Development bool
LogFileDir string
AppName string
ErrorFileName string
WarnFileName string
InfoFileName string
DebugFileName string
MaxSize int
MaxBackups int
MaxAge int
// contains filtered or unexported fields
}
func NewOptions ¶
Click to show internal directories.
Click to hide internal directories.