stdlogfmt

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger wraps a standard library logger and adapts it to pkg/log.

func New

func New(logger *stdlog.Logger, logDebug bool) *Logger

New creates a new logger that adapts the standard log package to pkg/log.

func (*Logger) Debug

func (l *Logger) Debug(args ...interface{})

Info logs using the "debug" level

func (*Logger) Info

func (l *Logger) Info(args ...interface{})

Info logs using the "info" level

func (*Logger) With

func (l *Logger) With(args ...interface{}) log.Logger

With creates a new logger using args as context

Jump to

Keyboard shortcuts

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