Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Level specifies the minimum log level for output.
Level slog.Level
// CallerEnabled controls whether caller info is shown per log level.
CallerEnabled map[slog.Level]bool
// TimeFormat defines the timestamp format in log messages.
TimeFormat string
// Padding sets the left padding width for attributes and caller lines.
Padding int
}
Options defines configuration parameters for the pnmd log handler.
func DefaultOptions ¶ added in v1.0.2
func DefaultOptions() *Options
DefaultOptions returns a new Options instance initialized with default values.
func (*Options) GetPadding ¶ added in v1.0.2
GetPadding returns the configured padding width for log output.
func (*Options) GetTimeFormat ¶ added in v1.0.3
GetTimeFormat returns the time format string used for log timestamps.
