#NEWLINE# def log_to_file( filename , level = 'WARN' , format = None , datefmt = None , **options ) : #NEWLINE# #INDENT# add_log_handler ( logging . FileHandler ( filename , ** options ) , options , format , datefmt )