rotate

package
v0.0.0-...-98de4c9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(options Options) (gen.LoggerBehavior, error)

Types

type Options

type Options struct {
	// TimeFormat enables output time in the defined format. See https://pkg.go.dev/time#pkg-constants
	// Not defined format makes output time as a timestamp in nanoseconds.
	TimeFormat string
	// ShortLevelName enables shortnames for the log levels
	ShortLevelName bool
	// Path directory for the log files
	Path string
	// Prefix
	Prefix string
	// Period rotation period
	Period time.Duration
	// Compress enables gzipping for the log files
	Compress bool
	// Depth how many log files in the rotation
	Depth int
}

Jump to

Keyboard shortcuts

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