logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Copyright (c) 2025 Tobias Schäfer. All rights reserved. Licensed under the MIT License, see LICENSE file in the project root for details.

Index

Constants

This section is empty.

Variables

View Source
var (
	Levels = []string{"debug", "info", "warn", "error"}
)

Functions

func Level

func Level() slog.Level

Types

type Logger

type Logger struct {
	Logger *slog.Logger
	Level  slog.Level
}

func NewLogger added in v1.0.0

func NewLogger(levelStr string) (*Logger, error)

Jump to

Keyboard shortcuts

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