Documentation ¶
Index ¶
Constants ¶
View Source
const ( // WriterConsole console输出 WriterConsole = "console" // WriterFile 文件输出 WriterFile = "file" )
View Source
const ( // RotateTimeDaily 按天切割 RotateTimeDaily = "daily" // RotateTimeHourly 按小时切割 RotateTimeHourly = "hourly" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Development bool DisableCaller bool DisableStacktrace bool Encoding string Level string Name string Writers string LoggerFile string LoggerWarnFile string LoggerErrorFile string LogFormatText bool LogRollingPolicy string LogBackupCount uint }
Config log config
Click to show internal directories.
Click to hide internal directories.