Package rrlog :: Package contrib :: Module mail :: Class CatBuffer
[hide private]
[frames] | no frames]

Class CatBuffer

source code

object --+
         |
        CatBuffer

Instance Methods [hide private]
 
__init__(self, rules, format_line=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_calc_deadline(self, secs_remaining) source code
 
__call__(self, jobhist, writer)
The current implementation locks the current thread if a rule applies, to safely buffer it.
source code
 
_buffer(self, job, secs) source code
 
iter_all_and_clear(self) source code
 
deadline_reached(self) source code
 
size(self) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, rules, format_line=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • rules - list of rules which decide about the log jobs to send. Use e.g. a tuple of CatRule objects. If empty list, no messages are buffered. The rules are processed in the given order. If a rule applies, the following rules in the list are ignored.
Overrides: object.__init__