logging

package
v0.0.0-...-93c18d4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(lc *config.LoggingConfiguration) *slog.Logger

func GetLoggingLevel

func GetLoggingLevel(lc *config.LoggingConfiguration) slog.Level

Types

type Logger

type Logger interface {
	Debug(component, msg string, args ...any)
	Info(component, msg string, args ...any)
	Error(component, msg string, args ...any)
}

func NewFromConfig

func NewFromConfig(loggingConfig *config.LoggingConfiguration) Logger

Jump to

Keyboard shortcuts

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