logger

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Unlicense Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildLogger

func BuildLogger(cfg *config.LoggerConfig) (*slog.Logger, error)

BuildLogger creates a log/slog logger from the given log config.

func LogIf

func LogIf(l *slog.Logger, level slog.Level, f func(l *slog.Logger))

Types

This section is empty.

Jump to

Keyboard shortcuts

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