Package rrlog :: Package contrib :: Module stackindent :: Class StackIndentFilter
[hide private]
[frames] | no frames]

Class StackIndentFilter

source code

object --+
         |
        StackIndentFilter

At the first log call, it adjusts itself to zero indention. You can later adjust (tara) with each log call. Use log( ..., stackindent_tara=0). This will adjust the current call to be zero-indented. Use -1 to immediately indent by 1 etc. (Negative indention is ignored, these lines appear not-indented.)

Instance Methods [hide private]
 
__init__(self, token=' ', msgPrefix=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, jobhist, writer) 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, token=' ', msgPrefix=None)
(Constructor)

source code 

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

Parameters:
  • token - The string used to indent one level.
  • msgPrefix - str. If given, indent only messages starting with this prefix. All other messages are ignored (they cannot even trigger a "tara").
Overrides: object.__init__