Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogrusConfig ¶
type LogrusConfig struct { }
func (*LogrusConfig) EnableConsole ¶
func (l *LogrusConfig) EnableConsole(level logrus.Level, disableColor bool)
EnableConsole 启用该设置后,日志内容将向标准控台输出
func (*LogrusConfig) EnableFileWithJson ¶
func (l *LogrusConfig) EnableFileWithJson(level logrus.Level, fileConfig ...*lumberjack.Logger)
EnableFileWithJson 启用该配置后将写入日志文件,并将日志输出json格式
func (*LogrusConfig) EnableFileWithText ¶
func (l *LogrusConfig) EnableFileWithText(level logrus.Level, fileConfig ...*lumberjack.Logger)
EnableFileWithText 启用该配置后写入日志文件,将日志输出为text格式
Click to show internal directories.
Click to hide internal directories.