logger

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 2 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 {
	*logging.Logger
}

func NewDummyLogger

func NewDummyLogger(name string) *Logger

func NewLogger

func NewLogger(name string) *Logger

func (Logger) Printf

func (l Logger) Printf(format string, args ...interface{})

func (Logger) Println

func (l Logger) Println(args ...interface{})

type NopBackend

type NopBackend struct {
}

func (*NopBackend) GetLevel

func (b *NopBackend) GetLevel(val string) logging.Level

func (*NopBackend) IsEnabledFor

func (b *NopBackend) IsEnabledFor(level logging.Level, val string) bool

func (*NopBackend) Log

func (b *NopBackend) Log(level logging.Level, calldepth int, rec *logging.Record) error

func (*NopBackend) SetLevel

func (b *NopBackend) SetLevel(level logging.Level, val string)

Jump to

Keyboard shortcuts

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