oslotest.log
Module¶oslotest.log.
ConfigureLogging
(format='%(levelname)8s [%(name)s] %(message)s')¶Bases: fixtures.fixture.Fixture
Configure logging.
The behavior is managed through two environment variables. If
OS_DEBUG
is true then the logging level is set to debug. If
OS_LOG_CAPTURE
is true a FakeLogger is configured. Alternatively,
OS_DEBUG
can be set to an explicit log level, such as INFO
.
“True” values include True
, true
, 1
and yes
.
Valid log levels include DEBUG
, INFO
, WARNING
, ERROR
,
TRACE
and CRITICAL
(or any other valid integer logging level).
logger
¶The logger fixture, if it is created.
level
¶logging.DEBUG
if debug logging is enabled, otherwise
the log level specified by OS_DEBUG
, otherwise None
.
Parameters: | format – The logging format string to use. |
---|
DEFAULT_FORMAT
= '%(levelname)8s [%(name)s] %(message)s'¶Default log format
setUp
()¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.