logger

package
v1.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Levels

func Levels() []string

func LevelsFmt

func LevelsFmt() string

func ToLevel

func ToLevel(input string) zerolog.Level

Types

type Logger

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

func New

func New(opts Options) *Logger

func (*Logger) Log

func (l *Logger) Log() *zerolog.Logger

func (*Logger) Output

func (l *Logger) Output() io.Writer

type Options

type Options struct {
	Level       zerolog.Level
	LogFilename string
	LogMaxSize  int
	LogMaxAge   int
}

func NewDefaultOptions

func NewDefaultOptions() Options

Jump to

Keyboard shortcuts

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