Exemplo n.º 1
0
    def test_mylogger_noname_notime(self):
        """without time and name

        """
        print()
        CoreLog("debug", name="", time=False)
        CoreLog.verbose("hey")
        CoreLog()._clear()
Exemplo n.º 2
0
    def test_mylogger_verbose(self):
        """verbose setting

        """
        print()
        CoreLog("debug")
        CoreLog.verbose("hey")
        CoreLog()._clear()
Exemplo n.º 3
0
    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()
Exemplo n.º 4
0
    def test_mylogger(self):
        """mylogger

        """
        print()
        with self.assertRaises(ValueError):
            CoreLog.debug("hey")
        CoreLog("debug")
        CoreLog.info("hey")
        CoreLog()._clear()
Exemplo n.º 5
0
    def test_mylogger_debug(self):
        """debug setting

        """
        print()
        CoreLog("debug")
        CoreLog.debug("hey")
        CoreLog.verbose("hey")
        CoreLog.info("hey")
        CoreLog.warning("hey")
        CoreLog.error("hey")
        CoreLog.critical("hey")
        CoreLog.fatal("hey")
        CoreLog()._clear()