loghandler

package
v0.0.0-...-e0ed648 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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) Shutdown

func (h *LogHandler) Shutdown()

Shutdown all files

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL