logger

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes the log file if one was opened. Should be called on application shutdown.

func Setup

func Setup() *slog.Logger

Setup initializes the global slog logger based on config values. Reads LOG_LEVEL, LOG_FORMAT, LOG_OUTPUT from environment. Sets slog.SetDefault() so that slog.Info(), slog.Error() etc. work globally. Returns the configured logger instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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