Logging¶
- brats.utils.logging.add_console_handler(level: str | int = 'WARNING')¶
Add a console handler to the logger for the brats package.
Follows the singleton pattern, ensuring only one console handler is present at any time.
- Parameters:
level (str | int) – The logging level for the console handler. Defaults to “WARNING”.
- brats.utils.logging.disable()¶
Disable the logging for the brats package.
- brats.utils.logging.enable()¶
Enable the logging for the brats package.
- brats.utils.logging.remove_console_handler()¶
Remove the console handler if it was added.