Documentation
¶
Overview ¶
Package logging provides logger initialization, MCP server logging hooks, and an HTTP round-tripper that logs TheHive requests and responses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoggingHooks ¶
GetLoggingHooks returns the MCP server hooks that log session, resource, prompt, and tool lifecycle events.
func InitLogger ¶
InitLogger builds a JSON slog.Logger at the given level, sets it as the default, and returns it. In stdio transport mode it writes to stderr so stdout stays reserved for JSON-RPC.
Types ¶
type Transport ¶ added in v1.0.0
type Transport struct {
Transport http.RoundTripper
}
Transport wraps an http.RoundTripper to add structured logging
Click to show internal directories.
Click to hide internal directories.