def info(self, txt):
        """
        Display message in the screen

        @param txt: message
        @type txt: string
        """
        Logger.info("[%s] %s" %
                    (self.__class__.__name__, unicode(txt).encode('utf-8')))
예제 #2
0
    def info(self, txt):
        """
        Display message in the screen

        @param txt: message
        @type txt: string
        """
        if sys.version_info[0] < 3:
            if not isinstance(txt, unicode):
                txt = unicode(txt, 'latin2')
        Logger.info("[%s] %s" % (self.__class__.__name__, txt))