<s> def set_debug ( logger , path ) : <EOL> from logging import FileHandler , Formatter , DEBUG <EOL> hdlr = FileHandler ( path ) <EOL> logger . addHandler ( hdlr ) <EOL> datefmt = '<STR_LIT>' <EOL> fmt = Formatter ( <EOL> "<STR_LIT>" , datefmt = datefmt ) <EOL> hdlr . setFormatter ( fmt ) <EOL> logger . setLevel ( DEBUG ) </s>
