Ejemplo n.º 1
0
    def testOutputToConsole(self):
        assertThat(False)
        #Container.bind('Config').toSingle(ConfigXml)

        log = Logger(True)

        log.heading("heading 1")
        log.info("test of params: {0}", 5)
        log.error("test of params: {0}", 5)
        log.good("test of params: {0}", 5)
        log.heading("test of params: {0}", 5)
        log.info("test of params: {0}", 5)
        log.info("info 1")
        log.error("error 1")
        log.good("good 1")
        log.info("info 2")
        log.heading("heading 2")
        log.info("info 3")
        log.finished("Done")
Ejemplo n.º 2
0
    def testOutputToConsole(self):
        assertThat(False)
        #Container.bind('Config').toSingle(ConfigXml)

        log = Logger(True)

        log.heading("heading 1")
        log.info("test of params: {0}", 5)
        log.error("test of params: {0}", 5)
        log.good("test of params: {0}", 5)
        log.heading("test of params: {0}", 5)
        log.info("test of params: {0}", 5)
        log.info("info 1")
        log.error("error 1")
        log.good("good 1")
        log.info("info 2")
        log.heading("heading 2")
        log.info("info 3")
        log.finished("Done")
Ejemplo n.º 3
0
    def testOutputToFile(self):
        assertThat(False)
        #Container.bind('Config').toSingle(ConfigXml)
        Container.bind('VarManager').toSingle(VarManager, {
            'LogPath': ScriptDir + '/logtest.txt',
            'LogPathPrevious': ScriptDir + '/logtest.prev.txt',
        })

        log = Logger(False, True)

        log.heading("heading 1")
        log.info("info 1")
        log.error("error 1")
        log.good("good 1")
        log.info("info 2")
        log.heading("heading 2")
        log.info("info 3")
        log.finished("Done")

        log.dispose()
Ejemplo n.º 4
0
    def testOutputToFile(self):
        assertThat(False)
        #Container.bind('Config').toSingle(ConfigXml)
        Container.bind('VarManager').toSingle(
            VarManager, {
                'LogPath': ScriptDir + '/logtest.txt',
                'LogPathPrevious': ScriptDir + '/logtest.prev.txt',
            })

        log = Logger(False, True)

        log.heading("heading 1")
        log.info("info 1")
        log.error("error 1")
        log.good("good 1")
        log.info("info 2")
        log.heading("heading 2")
        log.info("info 3")
        log.finished("Done")

        log.dispose()