Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext returns the logger carried by ctx, or the default logger if none is set.
func New ¶
New configures the standard library's default logger to write to w and returns the default slog logger (which writes through it), at slog's default log level. It's intended for long-running commands (e.g. `ghost serve`, `ghost mcp`) that act as backend processes and emit structured logs to stderr.
func NewContext ¶
NewContext returns a copy of ctx carrying the provided logger, along with the logger itself (for convenient assignment).
Types ¶
This section is empty.