logger

package module
v0.0.0-...-e4d3d8e Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "0.1.0"
)

Functions

func GetVersion

func GetVersion() string

func NewLogger

func NewLogger(opts ...OptionsFunc) *log.Logger

func NewMultiLogger

func NewMultiLogger(opts ...OptionsFunc) *log.Logger

Types

type CleanerFunc

type CleanerFunc func(filename string, maxBackups int, matches []os.FileInfo)

type OptionsFunc

type OptionsFunc func(logger *log.Logger)

func WithCronRunner

func WithCronRunner(spec string) OptionsFunc

func WithFileName

func WithFileName(fileName string) OptionsFunc

func WithLevel

func WithLevel(level string) OptionsFunc

func WithMaxBackups

func WithMaxBackups(maxBackups int) OptionsFunc

func WithMaxSize

func WithMaxSize(maxSize int64) OptionsFunc

func WithTimeFormat

func WithTimeFormat(timeFmt string) OptionsFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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