Ganga :: Utility :: logging :: FlushedMemoryHandler :: Class FlushedMemoryHandler
[hide private]
[frames] | no frames]

Class FlushedMemoryHandler

source code

               object --+                
                        |                
         logging.Filterer --+            
                            |            
              logging.Handler --+        
                                |        
logging.handlers.BufferingHandler --+    
                                    |    
       logging.handlers.MemoryHandler --+
                                        |
                                       FlushedMemoryHandler

Instance Methods [hide private]
 
__init__(self, *args, **kwds)
Initialize the handler with the buffer size, the level at which flushing should occur and an optional target.
source code
 
shouldFlush(self, record)
Check for buffer full or a record at the flushLevel or higher.
source code

Inherited from logging.handlers.MemoryHandler: close, flush, setTarget

Inherited from logging.handlers.BufferingHandler: emit

Inherited from logging.Handler: acquire, createLock, format, get_name, handle, 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__

Properties [hide private]

Inherited from logging.Handler: name

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwds)
(Constructor)

source code 

Initialize the handler with the buffer size, the level at which flushing should occur and an optional target.

Note that without a target being set either here or via setTarget(), a MemoryHandler is no use to anyone!

Overrides: object.__init__
(inherited documentation)

shouldFlush(self, record)

source code 

Check for buffer full or a record at the flushLevel or higher.

Overrides: logging.handlers.BufferingHandler.shouldFlush
(inherited documentation)