lumberjack

package
v1.1.13 Latest Latest
Warning

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

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

Documentation

Overview

Package lumberjack

log rotate interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRotate

func RegisterRotate(r Rotate, duration int)

RegisterRotate create a new go routine unit seconds

Types

type Option

type Option struct {
	Filename   string
	MaxSize    int
	MaxAge     int
	MaxBackups int
	LocalTime  bool
	Compress   bool
}

type Rotate

type Rotate interface {
	Write(p []byte) (n int, err error)
	Close() error
	Rotate() error
}

func NewEmptyRotate

func NewEmptyRotate() Rotate

func NewRotate

func NewRotate(option Option) Rotate

Jump to

Keyboard shortcuts

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