logger

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 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 Instance

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

func New

func New() *Instance

func (*Instance) Debug

func (l *Instance) Debug(message string)

func (*Instance) Debugf

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

func (*Instance) Error

func (l *Instance) Error(message string)

func (*Instance) Errorf

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

func (*Instance) Fatal

func (l *Instance) Fatal(message string)

func (*Instance) Fatalf

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

func (*Instance) Info

func (l *Instance) Info(message string)

func (*Instance) Infof

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

func (*Instance) Log

func (l *Instance) Log(level LogLevel, message string)

func (*Instance) Logf

func (l *Instance) Logf(level LogLevel, format string, a ...interface{})

func (*Instance) Panic

func (l *Instance) Panic(message string)

func (*Instance) SetPrinter

func (l *Instance) SetPrinter(printer Printer)

func (*Instance) Warn

func (l *Instance) Warn(message string)

func (*Instance) Warnf

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

type LogLevel

type LogLevel string
const (
	LevelInfo  LogLevel = "info"
	LevelDebug LogLevel = "debug"
	LevelWarn  LogLevel = "warn"
	LevelError LogLevel = "error"
	LevelFatal LogLevel = "fatal"
	LevelPanic LogLevel = "panic"
)

type Printer

type Printer interface {
	Println(v ...any)
}

Jump to

Keyboard shortcuts

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