file

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log added in v1.0.1

type Log struct {
	// contains filtered or unexported fields
}

func NewFileLog

func NewFileLog(name string, opts ...LogOption) *Log

func (*Log) SetLogFile added in v1.0.1

func (f *Log) SetLogFile() io.Writer

type LogOption added in v1.0.1

type LogOption func(*Log)

LogOption is fileLog option.

func MaxAge

func MaxAge(maxAge int) LogOption

MaxAge maxAge

func Mode

func Mode(mode string) LogOption

Mode file mode

func Path

func Path(path string) LogOption

Path path .

func Size

func Size(size int) LogOption

Size file size

Jump to

Keyboard shortcuts

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