def test_turn_process_id_with_custom_format(self): alog.set_format("blah") alog.turn_process_id(True)
def test_set_format(self): orig_format = alog.get_format() fs = "Test set format: %(asctime)s %(levelname)-5.5s" \ " [%(pathname)s:%(lineno)s] %(message)s" alog.set_format(fs) alog.set_format(orig_format)
def test_turn_thread_name_with_custom_format(self): alog.set_format("blah") alog.turn_thread_name(True)
def test_turn_log_datetime_with_custom_format(self): alog.set_format("blah") alog.turn_log_datetime(True)