Example #1
0
 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)
Example #2
0
 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()
Example #3
0
 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()
Example #4
0
 def setLog(self, severity=0):
     # XXX Need to write new logging initialization code here!
     self._severity = severity
     zLOG.initialize()
Example #5
0
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()
Example #6
0
 def setLog(self, severity=0):
     # XXX Need to write new logging initialization code here!
     self._severity = severity
     zLOG.initialize()
Example #7
0
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()