(self, format, *args)
override logger
override logger
override logger
def log_message(self, format, *args):
        """override logger"""
        if self.context['dump'] or self.context['log_data']:
            tmp = ''
            for i in args:
                tmp += ' '
                tmp += i
            if self.context['dump']:
                print self.address_string() + tmp
            if self.context['log_data']:
                self.context['log_file'].write(self.address_string() + tmp + '\n')
                self.context['log_file'].flush()
def log_message ( self , format , * args ) : if self . context [ 'dump' ] or self . context [ 'log_data' ] : tmp = '' for i in args : tmp += ' ' tmp += i if self . context [ 'dump' ] : print self . address_string ( ) + tmp if self . context [ 'log_data' ] : self . context [ 'log_file' ] . write ( self . address_string ( ) + tmp + '\n' ) self . context [ 'log_file' ] . flush ( )