Пример #1
0
 def test_turn_process_id_with_custom_format(self):
     alog.set_format("blah")
     alog.turn_process_id(True)
Пример #2
0
 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)
Пример #3
0
 def test_turn_thread_name_with_custom_format(self):
     alog.set_format("blah")
     alog.turn_thread_name(True)
Пример #4
0
 def test_turn_log_datetime_with_custom_format(self):
     alog.set_format("blah")
     alog.turn_log_datetime(True)