def _tolog(self,level):
def wrapper(msg):<EOL><INDENT>if self.log_colors:<EOL><INDENT>color = self.log_colors[level.upper()]<EOL>getattr(self.logger, level.lower())(coloring("<STR_LIT>".format(msg), color))<EOL><DEDENT>else:<EOL><INDENT>getattr(self.logger, level.lower())(msg)<EOL><DEDENT><DEDENT>return wrapper<EOL>
log with different level