Package rrlog :: Package server :: Module printwriter :: Class PrintLogWriter
[hide private]
[frames] | no frames]

Class PrintLogWriter

source code

                  object --+    
                           |    
textwriter.TextlineLogWriter --+
                               |
                              PrintLogWriter

Instance Methods [hide private]
 
__init__(self, writeMsgid=False, format_line=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
str
_format_line(self, job)
Default formatting method.
source code
 
writeNow(self, job)
Write without buffering, return when written
source code

Inherited from textwriter.TextlineLogWriter: cfn_cln, estimateLineCount

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, writeMsgid=False, format_line=None)
(Constructor)

source code 

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

Parameters:
  • format_line - Callable, takes a job and returns a single message line as str. See MsgJob for job attributes available. See textwriter.default_format_line for an example implementation.
Overrides: object.__init__
(inherited documentation)

_format_line(self, job)

source code 

Default formatting method.

Returns: str
single log line
Overrides: textwriter.TextlineLogWriter._format_line