fastmcp.utilities.logging
Logging utilities for FastMCP.
Functions
get_logger
name: the name of the logger, which will be prefixed with ‘FastMCP.’
- a configured logger instance
configure_logging
logger: the logger to configurelevel: the log level to userich_kwargs: the parameters to use for creating RichHandler
temporary_log_level
level: The temporary log level to set (e.g., “DEBUG”, “INFO”)logger: Optional logger to configure (defaults to FastMCP logger)enable_rich_tracebacks: Whether to enable rich tracebacks**rich_kwargs: Additional parameters for RichHandler

