def test(): import journal from jtest import jtest print " ** testing C++ informationals" info = journal.info("jtest") info.activate() jtest.info("jtest") print " ** testing C++ warnings" warning = journal.warning("jtest") #warning.deactivate() warning = jtest.warning("jtest") print " ** testing C++ errors" error = journal.error("jtest") #error.deactivate() jtest.error("jtest") return
def test(): import journal # force the initialization journal.journal() from jtest import jtest print " ** testing informationals" info = journal.info("jtest") info.activate() info.log("this is an info from python") jtest.info("jtest") print " ** testing warnings" warning = journal.warning("jtest") warning.log("this a warning from python") #jtest.warning("jtest") print " ** testing errors" error = journal.error("jtest") error.log("this an error from python") #jtest.error("jtest") return