logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(msg string, kv ...any)

func ErrorSkipframes

func ErrorSkipframes(skipframes int, msg string, kv ...any)

ErrorSkipframes logs error message and skips the given number of frames for the caller.

func Fatal

func Fatal(msg string, kv ...any)

func FatalSkipframes

func FatalSkipframes(skipframes int, msg string, kv ...any)

FatalSkipframes logs fatal message and terminates the app.

func Info

func Info(msg string, kv ...any)

func InfoSkipframes

func InfoSkipframes(skipframes int, msg string, kv ...any)

InfoSkipframes logs info message and skips the given number of frames for the caller.

func Init

func Init()

func Panic

func Panic(msg string, kv ...any)

func PanicSkipframes

func PanicSkipframes(skipframes int, msg string, kv ...any)

PanicSkipframes logs panic message and panics.

func ResetOutput

func ResetOutput()

func SetOutput

func SetOutput(w io.Writer)

Testing helpers

func StdErrorLogger

func StdErrorLogger() *log.Logger

func Warn

func Warn(msg string, kv ...any)

func WarnSkipframes

func WarnSkipframes(skipframes int, msg string, kv ...any)

WarnSkipframes logs warn message and skips the given number of frames for the caller.

Types

This section is empty.

Jump to

Keyboard shortcuts

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