Documentation ¶
Index ¶
- Constants
- func Access(remoteAddr string, usedTime int64, request []byte, err error)
- func CheckRotation(rotation string) bool
- func CloseLog()
- func Debug(arg ...interface{})
- func Debugf(format string, arg ...interface{})
- func Error(arg ...interface{})
- func Errorf(format string, arg ...interface{})
- func Fatal(arg ...interface{})
- func Fatalf(format string, arg ...interface{})
- func FileLine(caller interface{}, length int) string
- func Info(arg ...interface{})
- func Infof(format string, arg ...interface{})
- func IsDebug() bool
- func Slow(remoteAddr string, usedTimeUs int64, request []byte, err error)
- func Stats(arg interface{})
- func Warn(arg ...interface{})
- func Warnf(format string, arg ...interface{})
- type LevelEnable
- type Logger
- func (l *Logger) Access(remoteAddr string, cost int64, request []byte, err error)
- func (l *Logger) CloseSync()
- func (l *Logger) Debug(arg ...interface{})
- func (l *Logger) Debugf(ft string, arg ...interface{})
- func (l *Logger) Error(arg ...interface{})
- func (l *Logger) Errorf(ft string, arg ...interface{})
- func (l *Logger) Fatal(arg ...interface{})
- func (l *Logger) Fatalf(ft string, arg ...interface{})
- func (l *Logger) Info(arg ...interface{})
- func (l *Logger) Infof(ft string, arg ...interface{})
- func (l *Logger) Slow(remoteAddr string, cost int64, request []byte, err error)
- func (l *Logger) Stats(arg interface{})
- func (l *Logger) Warn(arg ...interface{})
- func (l *Logger) Warnf(ft string, arg ...interface{})
- type Options
Constants ¶
View Source
const ( TypeInfo = "INFO" TypeWarn = "WARN" TypeError = "ERROR" TypeFatal = "FATAL" TypeDebug = "DEBUG" )
View Source
const ( MonthlyRotate = "Monthly" DailyRotate = "Daily" HourlyRotate = "Hourly" )
View Source
const DefaultRotate = DailyRotate
Variables ¶
This section is empty.
Functions ¶
func CheckRotation ¶
Types ¶
type LevelEnable ¶
type LevelEnable struct{}
Click to show internal directories.
Click to hide internal directories.