Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogrusHook ¶
type LogrusHook struct { Dir string LevelTypeMap map[logrus.Level]LogType LogFileNamePrefix string LogFileNameSuffix string LogFileExt string Compress bool FileCount uint8 CleanPeriod time.Duration CleanEnable bool // contains filtered or unexported fields }
func New ¶
func New(dir string, compress, cleanEnable bool) *LogrusHook
func (*LogrusHook) Levels ¶
func (hook *LogrusHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.