def log(self, message, level=LOG_INFO):
assert level in [<EOL>self.LOG_ERROR,<EOL>self.LOG_INFO,<EOL>self.LOG_WARNING,<EOL>], "<STR_LIT>"<EOL>if isinstance(message, (dict, list, set, tuple)):<EOL><INDENT>message = pformat(message)<EOL><DEDENT>try:<EOL><INDENT>if "<STR_LIT:\n>" in message:<EOL><INDENT>message = "<STR_LIT:\n>" + message<EOL><DEDENT><DEDENT>except:  <EOL><INDENT>pass<EOL><DEDENT>message = "<STR_LIT>".format(self._module.module_full_name, message)<EOL>self._py3_wrapper.log(message, level)<EOL>
Log the message.
The level must be one of LOG_ERROR, LOG_INFO or LOG_WARNING