Package rrlog :: Package server :: Module filewriter :: Class FileConfig
[hide private]
[frames] | no frames]

Class FileConfig

source code

object --+
         |
        FileConfig

Describes a single log file. I.e.for log rotation, a sequence of this is required.

Instance Methods [hide private]
 
__init__(self, filepath, drop=True, lazy=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__repr__(self)
repr(x)
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, filepath, drop=True, lazy=False)
(Constructor)

source code 

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

Parameters:
  • drop - False: Append lines to existing log file (This makes no sense when using file rotation.) True: A new Writer clears the existing logfile.
  • filepath - full log filename incl.path
  • lazy - If True, file is opened with first log entry.If False, file is opened immediately.
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)