logger

package
v0.0.0-...-41a272b Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package logger provides functionality for setting up and managing logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLevel

func GetLevel(name string) (slog.Level, error)

GetLevel returns the slog.Level for a given log level name.

func GetLevels

func GetLevels() []string

GetLevels returns a slice of available log level names.

func Setup

func Setup(logLevel, logFile string) (closer func(), err error)

Setup initializes the global logger with the specified log level and output file. If no log file is provided, it defaults to stderr. It returns a closer function to be called on application shutdown.

Types

This section is empty.

Jump to

Keyboard shortcuts

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