ibm_aigov_facts_client.utils.logging_utils module
- class FactsLoggingStream
Bases:
objectA Python stream for use with event logging APIs throughout Facts_Client (eprint(), logger.info(), etc.). This stream wraps sys.stderr, forwarding write() and flush() calls to the stream referred to by sys.stderr at the time of the call. It also provides capabilities for disabling the stream to silence event logs.
- write(text)
- flush()
- property enabled
- disable_logging()
Disables the FactsLoggingStream used by event logging. (eprint(), logger.info(), etc), silencing all subsequent event logs.
- enable_logging()
Enables the FactsLoggingStream used by event logging. This reverses the effects of disable_logging().
- disable_debug()
- configure_facts_loggers(root_module_name, level='INFO', propagate=False)
- clear_up_handler()
- disable_module_logger()