Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRotateFileHook ¶
func NewRotateFileHook(config RotateFileConfig) (log.Hook, error)
func WithLoggable ¶
Types ¶
type RotateFileConfig ¶
type RotateFileConfig struct { Filename string MaxSize int MaxBackups int MaxAge int Compress bool Level log.Level Formatter log.Formatter }
RotateFileConfig configuration for logfile rotation.
type RotateFileHook ¶
type RotateFileHook struct { Config RotateFileConfig // contains filtered or unexported fields }
RotateFileHook is file rotation hook for logrus
func (*RotateFileHook) Levels ¶
func (hook *RotateFileHook) Levels() []log.Level
Click to show internal directories.
Click to hide internal directories.