Documentation ¶
Index ¶
- func GetLoggerWithPackageName() *logrus.Entry
- func GetOutput() io.Writer
- func Logger() *logrus.Entry
- func SetLogConfig(level logrus.Level, formatter string)
- func UseConsoleAppender(level logrus.Level, formatter string)
- func UseRollingFileAppender(filename string, formatter string, level logrus.Level, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogConfig ¶
func UseConsoleAppender ¶
@title UseConsoleAppender @description 设置日志输出到标准输出,建议程序启动时设置,程序默认输出到标准输出 @param level 日志级别 @parma formatter 日志格式, text or json
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.