Documentation
¶
Index ¶
- Constants
- Variables
- func ContextWithLogger(ctx context.Context, logger *slog.Logger) context.Context
- func FromContext(ctx context.Context) *slog.Logger
- func InitCommandLogger(cmd *cobra.Command, commandName string)
- func InitToolLoggerContext(ctx context.Context, toolName string, req *mcp.CallToolRequest, ...) context.Context
- func LogHttpResponse(ctx context.Context, httpResp *http.Response)
Constants ¶
View Source
const LoggerContextKey contextKey = "logger"
Variables ¶
View Source
var Logger *slog.Logger
Functions ¶
func ContextWithLogger ¶
func InitCommandLogger ¶
func InitToolLoggerContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.