logging

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeKey = "type"
)

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

func Error

func Error(msg string)

func Fatal

func Fatal(msg string)

Fatal logs at the error level and then exits with code 1.

func Info

func Info(msg string)

func InitLogger

func InitLogger(w io.Writer)

func Warn

func Warn(msg string)

func WithError

func WithError(err error) loggingEntry

func WithField

func WithField(k string, v any) loggingEntry

func WithFields

func WithFields(fields map[string]any) loggingEntry

Types

This section is empty.

Jump to

Keyboard shortcuts

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