log

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DateTimeFormat = "2006-01-02 15:04:05"

Variables

This section is empty.

Functions

func ConfigureDefaultLogger

func ConfigureDefaultLogger(level string)

func Parse

func Parse(level string) zerolog.Level

Types

type Logger

type Logger struct {
	zerolog.Logger
	Level zerolog.Level

	FilePath string
	File     *os.File
}

func New

func New(fp, level string, toConsole bool, sample uint32) (*Logger, error)

func NewTest

func NewTest(t *testing.T, level zerolog.Level) (*Logger, *zltest.Tester)

func (Logger) Close

func (l Logger) Close() error

Jump to

Keyboard shortcuts

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