logger

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 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

Level .

type LogPrinter

type LogPrinter struct {
	Label string
}

LogPrinter information Definition

func NewLogPrinter

func NewLogPrinter(label string) *LogPrinter

NewLogPrinter create a new log printer object

func (*LogPrinter) Debug

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

Debug level log information output

func (*LogPrinter) DebugDynamic

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

DebugDynamic .

func (*LogPrinter) Debugf

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

Debugf level log information formatted output

func (*LogPrinter) Debugw

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

Debugw .

func (*LogPrinter) Error

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

Error level log information output

func (*LogPrinter) Errorf

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

Errorf Error level log information formatted output

func (*LogPrinter) Errorw

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

Errorw .

func (*LogPrinter) Fatal

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

Fatal level log information output

func (*LogPrinter) Fatalf

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

Fatalf Fatal level log information formatted output

func (*LogPrinter) Fatalw

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

Fatalw .

func (*LogPrinter) Info

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

Info level log information output

func (*LogPrinter) InfoDynamic

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

InfoDynamic .

func (*LogPrinter) Infof

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

Infof Info level log information formatted output

func (*LogPrinter) Infow

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

Infow .

func (*LogPrinter) Panic

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

Panic level log information output

func (*LogPrinter) Panicf

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

Panicf Panic level log information formatted output

func (*LogPrinter) Panicw

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

Panicw .

func (*LogPrinter) Warn

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

Warn level log information output

func (*LogPrinter) Warnf

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

Warnf Warn level log information formatted output

func (*LogPrinter) Warnw

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

Warnw .

Jump to

Keyboard shortcuts

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