Trees | Indices | Help |
|
---|
|
logging.Formatter --+ | object --+ | IndentFormatter
Formatter with indentation level support.
Instance of this class exists only in one exemplar. For other requests of new instance returned already existing.
Level indentation is specific for each threads separately (if thread library available, otherwase used only common indentation level for all threads).
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
Instance IndentFormatter |
__instance = <XPyLIB.xlogging.IndentFormatter object at 0xadd3 Singular instance. |
||
dict{int,int} or int |
_level = thread and threading.local() or 0 Indentation level. |
||
__lock = <_RLock(None, 0)>
|
|
|||
Inherited from |
|
|
Initialize the formatter with specified format strings. Initialize the formatter either with the specified format string, or a default as described above. Allow for specialized date formatting with the optional datefmt argument (if omitted, you get the ISO8601 format).
|
|
Auto level decorator for functions. Call lvlup() befor function call and lvldown() after wrapped function return.
|
Auto level decorator for functions. Write first 'Call "fun.__name__"' using loginst.dbgtrace(). Also as lvlwrap(). If exception occurs then raise it. If level error tested then write '*** DBG LEVEL ERROR = different' where 'different' is level different. Write last 'Return from "fun.__name__"' using loginst.dbgtrace().
|
|
__instanceSingular instance.
|
_levelIndentation level. Dictionary of {thread.id, level} if thread enebled, else level.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Dec 1 23:43:15 2008 | http://epydoc.sourceforge.net |