logging :: FileHandler :: Class FileHandler
[hide private]
[frames] | no frames]

Class FileHandler

source code

Filterer --+        
           |        
     Handler --+    
               |    
   StreamHandler --+
                   |
                  FileHandler

A handler class which writes formatted logging records to disk files.

Instance Methods [hide private]
 
__init__(self, filename, mode='a', encoding=None)
Open the specified file and use it as the stream for logging.
source code
 
close(self)
Closes the stream.
source code

Inherited from StreamHandler: emit, flush

Inherited from Handler: acquire, createLock, format, handle, handleError, release, setFormatter, setLevel

Inherited from Filterer: addFilter, filter, removeFilter

Method Details [hide private]

__init__(self, filename, mode='a', encoding=None)
(Constructor)

source code 
Open the specified file and use it as the stream for logging.
Overrides: StreamHandler.__init__

close(self)

source code 
Closes the stream.
Overrides: Handler.close