logger

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger added in v0.1.0

func CreateLogger(level, logDir string) *slog.Logger

CreateLogger creates and returns a *slog.Logger with the specified level and optional log directory for file output.

func ParseLogLevel

func ParseLogLevel(level string) (slog.Level, error)

ParseLogLevel converts a string log level to slog.Level with validation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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