def log(self, msg='', level=20, traceback=False):
        """Log the given message.

        Append the last traceback if requested.
        """
        if traceback:
            msg += '\n' + ''.join(_traceback.format_exception(*sys.exc_info()))
        self.publish('log', msg, level)
Log the given message.

        Append the last traceback if requested.
        
cherrypy/process/wspbus.py