log

package
v0.0.0-...-bbf514f Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger logger.Logger = logger.NewJSON(os.Stderr)

Functions

func Debug

func Debug(msg string) logger.LogBuilder

Debug creates a new debug event with the given message

func Debugf

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

Debugf creates a new debug event with the formatted message

func Error

func Error(msg string) logger.LogBuilder

Error creates a new error event with the given message

func Errorf

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

Errorf creates a new error event with the formatted message

func Fatal

func Fatal(msg string) logger.LogBuilder

Fatal creates a new fatal event with the given message

func Fatalf

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

Fatalf creates a new fatal event with the formatted message

func Info

func Info(msg string) logger.LogBuilder

Info creates a new info event with the given message

func Infof

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

Infof creates a new info event with the formatted message

func NoExit

func NoExit()

NoExit prevents the logger from exiting on fatal events

func NoPanic

func NoPanic()

NoPanic prevents the logger from panicking on panic events

func Panic

func Panic(msg string) logger.LogBuilder

Fatal creates a new fatal event with the given message

func Panicf

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

Fatalf creates a new fatal event with the formatted message

func SetLevel

func SetLevel(l logger.LogLevel)

SetLevel sets the log level of the logger

func Warn

func Warn(msg string) logger.LogBuilder

Warn creates a new warn event with the given message

func Warnf

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

Warnf creates a new warn event with the formatted message

Types

This section is empty.

Jump to

Keyboard shortcuts

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