Module logHandler :: Class FileHandler
[hide private]
[frames] | no frames]

Class FileHandler

source code

      object --+            
               |            
logging.Filterer --+        
                   |        
     logging.Handler --+    
                       |    
   logging.StreamHandler --+
                           |
                          FileHandler

Instance Methods [hide private]
 
__init__(self, filename, mode)
Initialize the handler.
source code
 
close(self)
Tidy up any resources used by the handler.
source code
 
handle(self, record)
Conditionally emit the specified logging record.
source code

Inherited from logging.StreamHandler: emit, flush

Inherited from logging.Handler: acquire, createLock, format, get_name, handleError, release, setFormatter, setLevel, set_name

Inherited from logging.Filterer: addFilter, filter, removeFilter

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from logging.Handler: name

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filename, mode)
(Constructor)

source code 

Initialize the handler.

If stream is not specified, sys.stderr is used.

Overrides: object.__init__
(inherited documentation)

close(self)

source code 

Tidy up any resources used by the handler.

This version removes the handler from an internal map of handlers, _handlers, which is used for handler lookup by name. Subclasses should ensure that this gets called from overridden close() methods.

Overrides: logging.Handler.close
(inherited documentation)

handle(self, record)

source code 

Conditionally emit the specified logging record.

Emission depends on filters which may have been added to the handler. Wrap the actual emission of the record with acquisition/release of the I/O thread lock. Returns whether the filter passed the record for emission.

Overrides: logging.Handler.handle
(inherited documentation)