def test_mylogger_noname_notime(self): """without time and name """ print() CoreLog("debug", name="", time=False) CoreLog.verbose("hey") CoreLog()._clear()
def test_mylogger_verbose(self): """verbose setting """ print() CoreLog("debug") CoreLog.verbose("hey") CoreLog()._clear()
def test_mylogger(self): """mylogger """ print() with self.assertRaises(ValueError): CoreLog.debug("hey") CoreLog("debug") CoreLog.info("hey") CoreLog()._clear()
def test_mylogger_noname(self): """without name """ print() CoreLog("debug", name="") CoreLog.verbose("hey") CoreLog()._clear() CoreLog("debug", name=None) CoreLog.verbose("hey") CoreLog()._clear()
def test_mylogger_fatal(self): """debug setting """ print() CoreLog("fatal") CoreLog.debug("hey") CoreLog.verbose("hey") CoreLog.info("hey") CoreLog.warning("hey") CoreLog.error("hey") CoreLog.critical("hey") CoreLog()._clear()