def log(self, format_str, *format_args, **log_options):
if isinstance(format_str, Exception):<EOL><INDENT>logger.exception(format_str, *format_args)<EOL><DEDENT>else:<EOL><INDENT>log_level = log_options.get('<STR_LIT>', logging.DEBUG)<EOL>if logger.isEnabledFor(log_level):<EOL><INDENT>if format_args:<EOL><INDENT>logger.log(log_level, format_str.format(*format_args))<EOL><DEDENT>else:<EOL><INDENT>logger.log(log_level, format_str)<EOL><DEDENT><DEDENT><DEDENT>
wrapper around the module's logger

format_str -- string -- the message to log
*format_args -- list -- if format_str is a string containing {}, then format_str.format(*format_args) is ran
**log_options -- 
    level -- something like logging.DEBUG