logging

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(level slog.Level, format string, output io.Writer)

Configure sets up the global slog logger with specified level and format.

Formats:

  • "json": Structured JSON output for production
  • "text": Human-readable text for development

Levels: slog.LevelDebug, slog.LevelInfo, slog.LevelWarn, slog.LevelError

func ParseLevel

func ParseLevel(s string) slog.Level

ParseLevel converts string to slog.Level

Types

This section is empty.

Jump to

Keyboard shortcuts

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