Documentation ¶
Overview ¶
Package weblog provides a configurable logging system based on slog by providing convenient configuration and initialization options.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Config ¶
type Config struct { Filename string // Path to the log file. Uses stderr if empty. Type string // Log format: 'json' or 'text'. Level string // Log level as a string. AddSource bool // If true, includes source code position in logs. }
Config defines the configuration options for logging.
Click to show internal directories.
Click to hide internal directories.