221
221
def enable_test_log(to_file):
223
227
disable_default_logging()
225
229
hdlr = logging.StreamHandler(to_file)
226
230
hdlr.setLevel(logging.DEBUG)
227
231
hdlr.setFormatter(logging.Formatter('%(levelname)8s %(message)s'))
228
232
_bzr_logger.addHandler(hdlr)
229
233
_bzr_logger.setLevel(logging.DEBUG)