'Emits session info to the appropriate outputs and info channels.
Args:
message (str): The message to log.
channel (bool, optional): Log to the CHANNEL_CONNECTINFO channel
in addition to the server log.'

def log(self, message, channel=True):

    cchan = (channel and settings.CHANNEL_CONNECTINFO)
    if cchan:
        try:
            cchan = ChannelDB.objects.get_channel(cchan[0])
            cchan.msg(('[%s]:    %s' % (cchan.key, message)))
        except Exception:
            logger.log_trace()
    logger.log_info(message)
