The oslotest.log Module¶
-
class
oslotest.log.ConfigureLogging(format=’%(levelname)8s [%(name)s] %(message)s’)¶ Bases:
fixtures.fixture.FixtureConfigure logging.
The behavior is managed through two environment variables. If
OS_DEBUGis true then the logging level is set to debug. IfOS_LOG_CAPTUREis true a FakeLogger is configured. Alternatively,OS_DEBUGcan be set to an explicit log level, such asINFO.“True” values include
True,true,1andyes. Valid log levels includeDEBUG,INFO,WARNING,ERROR,TRACEandCRITICAL(or any other valid integer logging level).-
logger¶ The logger fixture, if it is created.
-
level¶ logging.DEBUGif debug logging is enabled, otherwise the log level specified byOS_DEBUG, otherwiseNone.
Parameters: format – The logging format string to use. -
DEFAULT_FORMAT= ‘%(levelname)8s [%(name)s] %(message)s’¶ Default log format
-
setUp()¶
-