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

_ClassType FileHandler

Filterer --+        
           |        
     Handler --+    
               |    
   StreamHandler --+
                   |
                  FileHandler
Known Subclasses:

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.
 
close(self)
Closes the stream.

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)

 

Open the specified file and use it as the stream for logging.

Overrides: Filterer.__init__

close(self)

 

Closes the stream.

Overrides: Handler.close