logging

package
v0.0.0-...-9cf7d52 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(c config.LoggingConfig) (*slog.Logger, error)

CreateLogger creates a new logger based on the provided config. An error is returned if the logger cannot be created because of an invalid log level, or because it cannot open the log file for writing. If the config is not enabled, a no operation logger is returned, that does not log (the logging functions do nothing).

Types

This section is empty.

Jump to

Keyboard shortcuts

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