Thanks to visit codestin.com
Credit goes to pkg.go.dev

option

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileLoggerOption

type FileLoggerOption struct {
	Level         level.Level
	LogDir        string
	FilePrefix    string
	AutoFlush     bool
	FlushInterval time.Duration
	SplitDate     bool
}

FileLoggerOption the option of the fileLogger

func NewFileLoggerOption

func NewFileLoggerOption(lvl level.Level, logDir string, filePrefix string, autoFlush bool, flushInterval time.Duration, splitDate bool) FileLoggerOption

NewFileLoggerOption returns an instance of the FileLoggerOption

Jump to

Keyboard shortcuts

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