Documentation
¶
Index ¶
- Variables
- func EnableConsole()
- func EnableDebug()
- func EnableError()
- func EnableFatal()
- func EnableInfo()
- func EnableLogFile(folder, filename string, maxAge, rotateTime time.Duration)
- func EnableLogFile2(folder, filename string, maxBackups, maxSize, maxAge int)
- func EnableTrace()
- func EnableWarn()
- func SetFormatter(formatter logrus.Formatter)
- func SetReportCaller(reportCaller bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Logger = logrus.New()
)
Functions ¶
func EnableConsole ¶
func EnableConsole()
func EnableDebug ¶
func EnableDebug()
func EnableError ¶
func EnableError()
func EnableFatal ¶
func EnableFatal()
func EnableInfo ¶
func EnableInfo()
func EnableLogFile ¶
func EnableLogFile2 ¶
func EnableTrace ¶
func EnableTrace()
func EnableWarn ¶
func EnableWarn()
func SetFormatter ¶
func SetReportCaller ¶
func SetReportCaller(reportCaller bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.