Documentation ¶
Index ¶
- func Debug(msg interface{})
- func Error(msg interface{})
- func Fatal(msg interface{})
- func Info(msg interface{})
- func NewFileRotationWriter(dir string, name string, maxBackups int, maxSize int, maxAge int) (w io.Writer, err error)
- func Panic(msg interface{})
- func SetDefaultLogger(logger *Logger)
- func Trace(msg interface{})
- func Warn(msg interface{})
- type Logger
- func (l *Logger) AddConsoleWriter() (err error)
- func (l *Logger) AddFileRotationWriter(dir string, name string, maxBackups int, maxSize int, maxAge int) (err error)
- func (l *Logger) AddFileWriter(dest string) (err error)
- func (l *Logger) Debug(msg interface{})
- func (l *Logger) Error(msg interface{})
- func (l *Logger) Fatal(msg interface{})
- func (l *Logger) Info(msg interface{})
- func (l *Logger) Init(force bool) *Logger
- func (l *Logger) Panic(msg interface{})
- func (l *Logger) SetTimeFormat(format string) (err error)
- func (l *Logger) Trace(msg interface{})
- func (l *Logger) Warn(msg interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileRotationWriter ¶
func SetDefaultLogger ¶
func SetDefaultLogger(logger *Logger)
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) AddConsoleWriter ¶
func (*Logger) AddFileRotationWriter ¶
func (*Logger) AddFileWriter ¶
func (*Logger) SetTimeFormat ¶
Click to show internal directories.
Click to hide internal directories.