logging

package
v0.0.0-...-3149a5f Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyslogFacility     = syslog.LOG_DAEMON
	SyslogDefaultLevel = syslog.LOG_INFO
)
View Source
const (
	InitStderrLevel = "warn"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	Logger
	Stderr *writerFilter
	Stdout *writerFilter
	Syslog *writerFilter
	// contains filtered or unexported fields
}
var Main Instance

func NewInstance

func NewInstance() (i Instance, err error)

func (*Instance) OptimizeLevel

func (i *Instance) OptimizeLevel()

type Logger

type Logger struct {
	zerolog.Logger
}

func BaseLogger

func BaseLogger(i io.Writer) Logger

func CtxLogger

func CtxLogger(ctx zerolog.Context) Logger

Jump to

Keyboard shortcuts

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