def _create_agent_log():
log_file = SETTINGS['<STR_LIT>']<EOL>if not log_file.endswith('<STR_LIT>'):<EOL><INDENT>log.error("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>log_file = DEFAULTS['<STR_LIT>']<EOL><DEDENT>retval = logging.getLogger('<STR_LIT>')<EOL>handler = logging.FileHandler(log_file, '<STR_LIT:a>', '<STR_LIT:utf-8>')<EOL>formatter = logging.Formatter('<STR_LIT>')<EOL>handler.setFormatter(formatter)<EOL>retval.addHandler(handler)<EOL>retval.setLevel(logging.WARNING)<EOL>return retval<EOL>
Creates .rollbar log file for use with rollbar-agent