logger

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NilLogger = &nilLogger{}

NilLogger is a nil implementation of Logger interface. It will log nothing.

Functions

This section is empty.

Types

type Level

type Level string

type LogPrinter

type LogPrinter struct {
	Label string
}

func NewLogPrinter

func NewLogPrinter(label string) *LogPrinter

func (*LogPrinter) Debug

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

func (*LogPrinter) DebugDynamic

func (l *LogPrinter) DebugDynamic(getStr func() string)

func (*LogPrinter) Debugf

func (l *LogPrinter) Debugf(format string, args ...interface{})

func (*LogPrinter) Debugw

func (l *LogPrinter) Debugw(msg string, keysAndValues ...interface{})

func (*LogPrinter) Error

func (l *LogPrinter) Error(args ...interface{})

func (*LogPrinter) Errorf

func (l *LogPrinter) Errorf(format string, args ...interface{})

func (*LogPrinter) Errorw

func (l *LogPrinter) Errorw(msg string, keysAndValues ...interface{})

func (*LogPrinter) Fatal

func (l *LogPrinter) Fatal(args ...interface{})

func (*LogPrinter) Fatalf

func (l *LogPrinter) Fatalf(format string, args ...interface{})

func (*LogPrinter) Fatalw

func (l *LogPrinter) Fatalw(msg string, keysAndValues ...interface{})

func (*LogPrinter) Info

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

func (*LogPrinter) InfoDynamic

func (l *LogPrinter) InfoDynamic(getStr func() string)

func (*LogPrinter) Infof

func (l *LogPrinter) Infof(format string, args ...interface{})

func (*LogPrinter) Infow

func (l *LogPrinter) Infow(msg string, keysAndValues ...interface{})

func (*LogPrinter) Panic

func (l *LogPrinter) Panic(args ...interface{})

func (*LogPrinter) Panicf

func (l *LogPrinter) Panicf(format string, args ...interface{})

func (*LogPrinter) Panicw

func (l *LogPrinter) Panicw(msg string, keysAndValues ...interface{})

func (*LogPrinter) Warn

func (l *LogPrinter) Warn(args ...interface{})

func (*LogPrinter) Warnf

func (l *LogPrinter) Warnf(format string, args ...interface{})

func (*LogPrinter) Warnw

func (l *LogPrinter) Warnw(msg string, keysAndValues ...interface{})

Jump to

Keyboard shortcuts

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