Documentation
¶
Overview ¶
Package logger provides opinionated logging capabilities for the tapes system.
It builds on Go's log/slog, with pluggable handlers for pretty CLI output (via charmbracelet/log) and structured JSON for services. All public constructors return *slog.Logger directly — no custom interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Multi ¶
Multi creates a *slog.Logger that dispatches every record to all provided loggers' underlying handlers. Each logger's handler is extracted via (*slog.Logger).Handler().
Types ¶
type Option ¶
type Option func(*config)
Option configures a Logger created with New.
func WithPretty ¶
WithPretty enables the charmbracelet/log handler for colorized, human-friendly CLI output.
func WithSource ¶
WithSource includes source file:line in log output.
func WithWriter ¶
WithWriter overrides the output writer. Defaults to os.Stdout.
func WithWriters ¶
WithWriters sets multiple output writers (combined via io.MultiWriter).