<s> import logging <EOL> import argv <EOL> import sys <EOL> import os <EOL> verbosity = ( <NUM_LIT:4> - argv . args . verbose ) * <NUM_LIT:10> <EOL> instance = logging . getLogger ( '<STR_LIT>' ) <EOL> instance . setLevel ( <NUM_LIT:10> ) <EOL> formatter = logging . Formatter ( '<STR_LIT>' ) <EOL> stream_handler = logging . StreamHandler ( sys . stdout ) <EOL> stream_handler . setLevel ( verbosity ) <EOL> stream_handler . setFormatter ( formatter ) <EOL> file_handler_output = '<STR_LIT>' . format ( os . getcwd ( ) ) <EOL> file_handler = logging . FileHandler ( file_handler_output , '<STR_LIT:w>' , delay = False ) <EOL> file_handler . setLevel ( <NUM_LIT:10> ) <EOL> file_handler . setFormatter ( formatter ) <EOL> instance . addHandler ( stream_handler ) <EOL> instance . addHandler ( file_handler ) </s>
