(self, msg)
Send a message to both stdout and the file
Send a message to both stdout and the file
Send a message to both stdout and the file
def broadcast(self, msg):
        '''Send a message to both stdout and the file'''
        print(msg)
        print(msg, file=self.log_file)
def broadcast ( self , msg ) : print ( msg ) print ( msg , file = self . log_file )