syslog

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug added in v1.3.1

func Debug(v ...any)

func Debugf added in v1.3.1

func Debugf(format string, v ...any)

func Error added in v1.3.1

func Error(v ...any)

func Errorf added in v1.3.1

func Errorf(format string, v ...any)

func Fatal

func Fatal(v ...any)

func Fatalf

func Fatalf(format string, v ...any)

func Info

func Info(v ...any)

func Infof

func Infof(format string, v ...any)

func Level added in v1.3.1

func Level(lv Lv)

func Panic

func Panic(v ...any)

func Panicf

func Panicf(format string, v ...any)

func SetLogger added in v1.3.1

func SetLogger(l Logger)

func Trace added in v1.3.1

func Trace(v ...any)

func Tracef added in v1.3.1

func Tracef(format string, v ...any)

func Warn added in v1.3.1

func Warn(v ...any)

func Warnf added in v1.3.1

func Warnf(format string, v ...any)

Types

type Logger added in v1.3.1

type Logger interface {
	Level(lv Lv) Logger

	Trace(v ...any)
	Tracef(format string, v ...any)
	Debug(v ...any)
	Debugf(format string, v ...any)
	Info(v ...any)
	Infof(format string, v ...any)
	Warn(v ...any)
	Warnf(format string, v ...any)
	Error(v ...any)
	Errorf(format string, v ...any)
	Panic(v ...any)
	Panicf(format string, v ...any)
	Fatal(v ...any)
	Fatalf(format string, v ...any)
}

func New added in v1.3.1

func New(lv Lv) Logger

type Lv added in v1.3.1

type Lv int8
const (
	LvTrace Lv = iota + 1
	LvDebug
	LvInfo
	LvWarn
	LvError
	LvPanic
	LvFatal
)

Jump to

Keyboard shortcuts

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