log

package
v0.0.0-...-5625908 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGlobalHelper

func NewGlobalHelper(opts ...Option) error

Types

type Option

type Option func(*Options)

func Backups

func Backups(backups int) Option

func Compress

func Compress(compress bool) Option

func File

func File(file string) Option

func Level

func Level(level int) Option

func Size

func Size(size int) Option

func TTL

func TTL(ttl int) Option

type Options

type Options struct {
	File     string `json:"file"`
	Level    int    `json:"level"`
	Rotation `json:"rotation"`
}

type Rotation

type Rotation struct {
	Backups  int  `json:"backups"`
	Size     int  `json:"size"`
	TTL      int  `json:"ttl"`
	Compress bool `json:"compress"`
}

Jump to

Keyboard shortcuts

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