def lg(self, msg, level=6):

        # log it to syslog
        if self.m_log != None:
            # concat them
            full_msg = self.m_name + ": " + msg

            # In debug mode printouts go to terminal stdout as well
            if self.m_debug:
                print(full_msg)

            self.m_log.log(full_msg, level)

        else:
            print "There is no logger for message(" + msg + ")"

        return None
    # end of lg
dataset/ETHPy150Open GetLevvel/message-simulator/src/rabbit_message_publisher.py/RabbitMessagePublisher.lg/original