<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def message(self, level, *args):
 """ Format the message of the logger. You can rewrite this method to format your own message:: class MyLogger(Logger):
 def message(self, level, *args):
 msg = ' '.join(args) if level == 'error': return terminal.red(msg) return msg """


        msg = ' '.join((str(o) for o in args))
        if level not in ('start', 'end', 'debug', 'info', 'warn', 'error'):
            return msg
        return '%s: %s' % (level, msg)