def test_bbb(self): """ test existence of backwards compatibility methods that do nothing """ zLOG.initialize() zLOG.set_initializer(lambda :False) zLOG.register_subsystem('foo') self.assertTrue('foo' in zLOG._subsystems)
def tearDown(self): # Close and remove all the handlers that came into existence # since setUp ran. for h in logging._handlers.keys(): if h not in self.handlers: h.close() del logging._handlers[h] os.remove(self.path) zLOG.initialize()
def tearDown(self): # Close and remove all the handlers that came into existence # since setUp ran. for h in logging._handlers.keys(): if h not in self.handlers: h.close() del logging._handlers[h] os.remove(self.path) zLOG.initialize()
def setLog(self, severity=0): # XXX Need to write new logging initialization code here! self._severity = severity zLOG.initialize()
def logging(): os.environ["STUPID_LOG_FILE"] = options["ZODB", "event_log_file"] os.environ["STUPID_LOG_SEVERITY"] = str(options["ZODB", "event_log_severity"]) zLOG.initialize()
def setLog(self, severity=0): # XXX Need to write new logging initialization code here! self._severity = severity zLOG.initialize()
def logging(): os.environ["STUPID_LOG_FILE"] = options["ZODB", "event_log_file"] os.environ["STUPID_LOG_SEVERITY"] = str(options["ZODB", "event_log_severity"]) zLOG.initialize()