logs

package
v0.0.0-...-41c389d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelEmergency = iota
	LevelAlert
	LevelCritical
	LevelError
	LevelWarning
	LevelNotice
	LevelInformational
	LevelDebug
)

RFC5424 log message levels.

Variables

This section is empty.

Functions

func Async

func Async(msgLen ...int64)

Async .

func Debug

func Debug(f interface{}, v ...interface{})

Debug log debug

func Error

func Error(f interface{}, v ...interface{})

Error log error

func Fatal

func Fatal(v ...interface{})

Fatal log fatal

func GetLevel

func GetLevel() int

GetLevel log level

func Info

func Info(f interface{}, v ...interface{})

Info log info

func Register

func Register(name string, log newLoggerFunc)

Register .

func SetLevel

func SetLevel(level int)

SetLevel .

func SetLogFuncCall

func SetLogFuncCall(b bool)

SetLogFuncCall .

func SetLogFuncCallDepth

func SetLogFuncCallDepth(d int)

SetLogFuncCallDepth .

func SetLogger

func SetLogger(adapter string, config ...string) error

SetLogger .

func Warn

func Warn(f interface{}, v ...interface{})

Warn log warn

Types

type Logger

type Logger logs.Logger

Logger .

Jump to

Keyboard shortcuts

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