def __init__ ( self , filename , mode , encoding = None ) : FileHandler . __init__ ( self , filename , mode , encoding ) self . mode = mode self . encoding = encoding
how to add log file name in stream handler in python
Use the specified filename for streamed logging .
def __init__(self, filename, mode, encoding=None):
        """Use the specified filename for streamed logging."""
        FileHandler.__init__(self, filename, mode, encoding)
        self.mode = mode
        self.encoding = encoding