Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RootOpts holds the log directory and log level configuration. RootOpts struct { Dir string LogLevel string } )
Functions ¶
func NewFileHookWithNewlineTruncate ¶
func NewFileHookWithNewlineTruncate(file io.Writer, level logrus.Level, formatter logrus.Formatter) *fileHook
NewFileHookWithNewlineTruncate returns a new FileHook with truncated new lines.
func SetupFileHook ¶
func SetupFileHook(baseDir string) func()
SetupFileHook creates the base log directory and configures logrus options.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.