logging

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package logging provides a simple wrapper around slog to initialize the logger with the given configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Level   string `yaml:"level"`
	Handler string `yaml:"handler"`
}

Config defines the configuration for the logger.

func (*Config) Initialize

func (c *Config) Initialize() error

Initialize initializes the logger with the given logging configuration.

Jump to

Keyboard shortcuts

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