140
140
tf = codecs.open(trace_fname, 'at', 'utf8', buffering=1)
142
142
if os.fstat(tf.fileno())[stat.ST_SIZE] == 0:
147
147
_file_handler = logging.StreamHandler(tf)
148
148
fmt = r'[%(process)5d] %(asctime)s.%(msecs)03d %(levelname)s: %(message)s'