logger

package
v0.11.10 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

View Source
const TagKey = "tag"

Variables

This section is empty.

Functions

func CreateSlogFor

func CreateSlogFor(serviceName string, attrs ...any) *slog.Logger

func Debug

func Debug(tag string, msg ...any)

func Error

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

func Fatal

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

func Info

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

func SetSlogHandler

func SetSlogHandler(handler slog.Handler)

func Warn

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

Types

type Logger

type Logger interface {
	Debug(msg ...any)
	Info(msg ...any)
	Warn(msg ...any)
	Error(msg ...any)
	Fatal(msg ...any)
}

func New

func New(serviceName string, attrs ...any) Logger

Jump to

Keyboard shortcuts

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