returns a fixture to make logging raise formatting exceptions.
To use:
from oslo_log import fixture as log_fixture
self.useFixture(log_fixture.get_logging_handle_error_fixture())
Override the log level for the named loggers, restoring their previous value at the end of the test.
To use:
from oslo_log import fixture as log_fixture
self.useFixture(log_fixture.SetLogLevel(['myapp.foo'], logging.DEBUG))
Parameters: |
|
---|