Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogHandler ¶
type LogHandler struct { // path to log file LogPath string // value < 1 will disable logrotate LogRotate int // usually os.Stderr DefaultWriter io.Writer Verbose bool Debug bool DisableDefaultWriter bool // contains filtered or unexported fields }
LogHandler cares about files and rotation
func (*LogHandler) Start ¶
func (h *LogHandler) Start(parent context.Context)
Start the log handling (should NOT be run in a go routine). Reload must be called at least once
Click to show internal directories.
Click to hide internal directories.