def test_retrievelog(): """ Test getting log by name. """ lgr = simplelog.make_logger (name='mytestlog') lgr.info ("what?") import logging lgr2 = logging.getLogger ('mytestlog') assert (lgr == lgr2), "loggers are not identical"
def test_filelog(): """ Test logging to file. """ lgr = simplelog.make_logger (handler='test/out/test.log') lgr.info ("what?")
def test_defaultlog(): """ Test the simplest case of logging. """ lgr = simplelog.make_logger() lgr.info ("what?")