def log_wrapper(self):
log = logging.getLogger('<STR_LIT>')<EOL>try:<EOL><INDENT>if self.params['<STR_LIT>']:<EOL><INDENT>log.setLevel(logging.DEBUG)<EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>log.setLevel(logging.INFO)<EOL><DEDENT>stream = logging.StreamHandler()<EOL>logformat = logging.Formatter(<EOL>'<STR_LIT>',<EOL>datefmt='<STR_LIT>')<EOL>stream.setFormatter(logformat)<EOL>log.addHandler(stream)<EOL>return log<EOL>
Wrapper to set logging parameters for output