Next / Previous / Contents / Shipman's homepage

17. Log.write(): Send a message to all current outputs

logscan.py
# - - -   L o g . w r i t e

    def write(self, *L):
        '''Write a message to log-outputs(self).
        '''
        #-- 1 --
        text = ''.join(L)

        #-- 2 --
        for outFile in self.__logMap.values():
            print >>outFile, text