Package rrlog :: Package server :: Module textwriter
[hide private]
[frames] | no frames]

Module textwriter

source code


Author: Ruben Reifenberg

Classes [hide private]
  TextlineLogWriter
Abstract base class for text line writers
Functions [hide private]
str
default_format_line(job, lineCount='')
Format a text line for writing from given job data.
source code
Function Details [hide private]

default_format_line(job, lineCount='')

source code 

Format a text line for writing from given job data. This format is not intended for parsers, since it does not provide parser friendly delimiters between the items, and it is likely to change with later versions. Currently, provide a custom line formatting (see format_line parameter) if you need a stable and parseable format.

Parameters:
  • lineCount - int or str, intended to be used for adding a line number. Default == "" (not visible) (Generally, writer classes are free to use it in their custom way (e.g.starting form 0 or from 1, globaly written lines in file or stdout/lines in current file only), or to ignore it.)
Returns: str
line to be written