Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForScope ¶ added in v0.0.2
ForScope creates a logger for the given package scope, according to user config. Falls back to conf.LogLevel (see config.Config#LogLevelFor).
func New ¶
New returns a new slog.Logger configured appropriately for the environment. It uses a TextHandler if stderr is a terminal, and a JSONHandler otherwise. All logging is directed to os.Stderr to keep stdout clean for MCP stdio transport.
func ParseLevel ¶ added in v0.0.2
ParseLevel parses a level string (debug, info, warn, error) into a slog.Level. Default is slog.LevelWarn.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.