param.parameterized.logging_level#
- param.parameterized.logging_level(level: str) Generator[None, None, None][source]#
Context manager to temporarily modify Param’s logging level.
This function allows you to temporarily change the logging level of the Param library. Once the context exits, the original logging level is restored.
- Parameters:
level (str) – The desired logging level as a string. Must be one of:
DEBUG,INFO,WARNING,ERROR,CRITICAL, orVERBOSE.- Yields:
None – A context where the logging level is temporarily modified.
Examples
Temporarily set the logging level to
DEBUG:>>> import param >>> with param.logging_level('DEBUG'): ... param.get_logger().debug("This is a debug message.") DEBUG:param: This is a debug message.
After the context exits, the logging level is restored.