package
Version:
v0.0.0-...-ff33c78
Opens a new window with list of versions in this module.
Published: May 24, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NewHook builds a new rotate file hook.
type Config struct {
Level string `mapstructure:"level"`
MaxSize int `mapstructure:"max-size"`
MaxAge int `mapstructure:"max-age"`
MaxBackups int `mapstructure:"max-backup"`
Output string `mapstructure:"output"`
Stdout bool `mapstructure:"stdout"`
}
File represents the rotate file hook.
Fire is called by logrus when it is about to write the log entry.
Levels determines log levels that for which the logs are written.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.