Next / Previous / Contents / Shipman's homepage

16. Log.message(): General message, not counted

logscan.py
# - - -   L o g . m e s s a g e

    def message(self, *L):
        '''Send a message, but don't increment any counts.
        '''

The big job here is to break up the message on newlines, and attach the current prefix to each line.

logscan.py
        #-- 1 --
        for line in (''.join(L)).split('\n'):
            #-- 1 body --
            # [ log-outputs(self)  +:=  self.__prefix + line ]
            self.write(self.__prefix + line)