stdlog

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger added in v1.0.3

type Logger struct {

	// Decorate allows to modify the log message before it is written.
	Decorate func(string) string
	// contains filtered or unexported fields
}

Logger implements the forwarder.Logger interface using the standard log package.

func Default

func Default() Logger

func New

func New(cfg *flog.Config) Logger

func (Logger) Debugf added in v1.0.3

func (sl Logger) Debugf(format string, args ...any)

func (Logger) Errorf added in v1.0.3

func (sl Logger) Errorf(format string, args ...any)

func (Logger) Infof added in v1.0.3

func (sl Logger) Infof(format string, args ...any)

func (Logger) Named added in v1.0.3

func (sl Logger) Named(name string) Logger

func (Logger) Unwrap added in v1.0.3

func (sl Logger) Unwrap() *log.Logger

Unwrap returns the underlying log.Logger pointer.

func (Logger) WithValue added in v1.0.3

func (sl Logger) WithValue(key, value string) flog.Logger

Jump to

Keyboard shortcuts

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