log

package
v0.0.0-...-e4caca2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWriter

func AddWriter(input ...func(message string))

func Critical

func Critical(message interface{}, params ...interface{})

Critical logs a message at a Critical Level

func CriticalF

func CriticalF(message interface{}, params ...interface{})

CriticalF logs a message at Critical level using the same syntax and options as fmt.Printf

func Criticalf

func Criticalf(message interface{}, params ...interface{})

CriticalF logs a message at Critical level using the same syntax and options as fmt.Printf

func Debug

func Debug(message interface{}, params ...interface{})

Debug logs a message at Debug level

func DebugF

func DebugF(message interface{}, params ...interface{})

DebugF logs a message at Debug level using the same syntax and options as fmt.Printf

func Debugf

func Debugf(message interface{}, params ...interface{})

DebugF logs a message at Debug level using the same syntax and options as fmt.Printf

func Error

func Error(message interface{}, params ...interface{})

Error logs a message at Error level

func ErrorF

func ErrorF(message interface{}, params ...interface{})

ErrorF logs a message at Error level using the same syntax and options as fmt.Printf

func Errorf

func Errorf(message interface{}, params ...interface{})

ErrorF logs a message at Error level using the same syntax and options as fmt.Printf

func Fatal

func Fatal(message interface{}, params ...interface{})

Fatal is just like func l.Critical logger except that it is followed by exit to program

func FatalF

func FatalF(message interface{}, params ...interface{})

FatalF is just like func l.CriticalF logger except that it is followed by exit to program

func Fatalf

func Fatalf(message interface{}, params ...interface{})

FatalF is just like func l.CriticalF logger except that it is followed by exit to program

func Info

func Info(message interface{}, params ...interface{})

Info logs a message at Info level

func InfoF

func InfoF(message interface{}, params ...interface{})

InfoF logs a message at Info level using the same syntax and options as fmt.Printf

func Infof

func Infof(message interface{}, params ...interface{})

InfoF logs a message at Info level using the same syntax and options as fmt.Printf

func Notice

func Notice(message interface{}, params ...interface{})

Notice logs a message at Notice level

func NoticeF

func NoticeF(message interface{}, params ...interface{})

NoticeF logs a message at Notice level using the same syntax and options as fmt.Printf

func Noticef

func Noticef(message interface{}, params ...interface{})

NoticeF logs a message at Notice level using the same syntax and options as fmt.Printf

func Panic

func Panic(message interface{}, params ...interface{})

Panic is just like func l.Critical except that it is followed by a call to panic

func PanicF

func PanicF(message interface{}, params ...interface{})

PanicF is just like func l.CriticalF except that it is followed by a call to panic

func Panicf

func Panicf(message interface{}, params ...interface{})

PanicF is just like func l.CriticalF except that it is followed by a call to panic

func SetLevel

func SetLevel(lvl Level)

func SetStackTrace

func SetStackTrace(lvl int)

func SetWriters

func SetWriters(input ...func(message string))

func Warning

func Warning(message interface{}, params ...interface{})

Warning logs a message at Warning level

func WarningF

func WarningF(message interface{}, params ...interface{})

WarningF logs a message at Warning level using the same syntax and options as fmt.Printf

func Warningf

func Warningf(message interface{}, params ...interface{})

WarningF logs a message at Warning level using the same syntax and options as fmt.Printf

Types

type Level

type Level int

LogLevel type

const (
	CriticalLevel Level = iota + 1
	ErrorLevel
	WarningLevel
	NoticeLevel
	InfoLevel
	DebugLevel
)

func ParseLevel

func ParseLevel(expr string) Level

Jump to

Keyboard shortcuts

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