<s> import logging <EOL> def get_logger ( LOGFILE ) : <EOL> logger = logging . getLogger ( '<STR_LIT>' ) <EOL> logger . setLevel ( logging . DEBUG ) <EOL> fh = logging . FileHandler ( LOGFILE ) <EOL> fh . setLevel ( logging . DEBUG ) <EOL> ch = logging . StreamHandler ( ) <EOL> ch . setLevel ( logging . DEBUG ) <EOL> formatter = logging . Formatter ( '<STR_LIT>' ) <EOL> fh . setFormatter ( formatter ) <EOL> ch . setFormatter ( formatter ) <EOL> logger . addHandler ( fh ) <EOL> logger . addHandler ( ch ) <EOL> return logger <EOL> logger = get_logger ( '<STR_LIT>' ) </s>
