oslo_log.fixture.get_logging_handle_error_fixture()¶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())
oslo_log.fixture.SetLogLevel(logger_names, level)¶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: |
|
|---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.