stdlog

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 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 StdLogger

type StdLogger struct {

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

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

func Default

func Default() StdLogger

func New

func New(cfg *flog.Config) StdLogger

func (StdLogger) Debugf

func (sl StdLogger) Debugf(format string, args ...interface{})

func (StdLogger) Errorf

func (sl StdLogger) Errorf(format string, args ...interface{})

func (StdLogger) Infof

func (sl StdLogger) Infof(format string, args ...interface{})

func (StdLogger) Named

func (sl StdLogger) Named(name string) StdLogger

func (StdLogger) Unwrap

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

Unwrap returns the underlying log.Logger pointer.

Jump to

Keyboard shortcuts

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