def setup_logging():
fmt = '<STR_LIT>'<EOL>handler_stderr = logging.StreamHandler(sys.stderr)<EOL>handler_stderr.setFormatter(logging.Formatter(fmt))<EOL>if OPTIONS['<STR_LIT>'] == <NUM_LIT:1>:<EOL><INDENT>handler_stderr.addFilter(logging.Filter(__name__))<EOL><DEDENT>root_logger = logging.getLogger()<EOL>root_logger.setLevel(logging.DEBUG)<EOL>root_logger.addHandler(handler_stderr)<EOL>
Called when __name__ == '__main__' below. Sets up logging library.

    All logging messages go to stderr, from DEBUG to CRITICAL. This script uses print() for regular messages.