Documentation
¶
Overview ¶
Package log .
this log is based `https://github.com/silenceper/log` but more functions:
1. can be set to output to file
2. log file can splited into files day by day, just like `app.20060102.log`
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, v ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, v ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, v ...interface{})
- func Info(args ...interface{})
- func Infof(format string, v ...interface{})
- func NewLogger() *logger
- func SetFileOutput(logPath, filename string)
- func SetLogLevel(level Level)
- func Warn(args ...interface{})
- func Warnf(format string, v ...interface{})
- type Level
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.
