boofun.utils.logging
Logging utilities for the BooFun library.
This module provides a consistent logging interface for the library, enabling users to configure debug logging for troubleshooting.
- Usage:
import logging
# Enable debug logging for BooFun logging.getLogger(“boofun”).setLevel(logging.DEBUG) logging.getLogger(“boofun”).addHandler(logging.StreamHandler())
# Or use the convenience function from boofun.utils.logging import enable_debug_logging enable_debug_logging()
Functions
|
Enable debug logging for the BooFun library. |
|
Get a logger for a specific BooFun submodule. |
- boofun.utils.logging.enable_debug_logging(level: int = 10, format_string: str | None = None) None[source]
Enable debug logging for the BooFun library.
This is a convenience function for users who want to see detailed logging output for debugging purposes.
- Parameters:
level – Logging level (default: DEBUG)
format_string – Custom format string (default: timestamp, level, name, message)
Example
>>> from boofun.utils.logging import enable_debug_logging >>> enable_debug_logging() >>> # Now BooFun will log debug messages