Documentation ¶
Index ¶
- Variables
- func Debugf(format string, v ...interface{})
- func Errorf(format string, v ...interface{})
- func Infof(format string, v ...interface{})
- func InitLogger(logPath string, levelStr string, maxDays int, disableLogColor bool)
- func Logf(level log.Level, offset int, format string, v ...interface{})
- func Tracef(format string, v ...interface{})
- func Warnf(format string, v ...interface{})
- type WriteLogger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TraceLevel = log.TraceLevel DebugLevel = log.DebugLevel InfoLevel = log.InfoLevel WarnLevel = log.WarnLevel ErrorLevel = log.ErrorLevel )
View Source
var Logger *log.Logger
Functions ¶
func InitLogger ¶
Types ¶
type WriteLogger ¶
type WriteLogger struct {
// contains filtered or unexported fields
}
func NewWriteLogger ¶
func NewWriteLogger(level log.Level, offset int) *WriteLogger
Click to show internal directories.
Click to hide internal directories.