Logo Search packages:      
Sourcecode: tcpwatch-httpproxy version File versions  Download package

tcpwatch::RecordingObserver Class Reference

Inheritance diagram for tcpwatch::RecordingObserver:

List of all members.


Detailed Description

Log request to a file.

o Filenames mangle connection and transaction numbers from the
  ForwardedConnectionInfo passed as 'fci'.

o Decorates an underlying observer, created via the passed 'sub_factory'.

o Files are created in the supplied 'record_directory'.

o Unless suppressed, log response and error to corresponding files.

Definition at line 398 of file tcpwatch.py.


Public Member Functions

def __init__
def __init__
def closed
def connected
def connection_from
def error
def flush
def received
def write

Public Attributes

 continuing_line

Static Public Attributes

tuple arrows = ('<==', '==>')
int continuing_line = 1

Private Member Functions

def _openForAppend

Private Attributes

 _decorated
 _directory
 _errors
 _log_number
 _prefix
 _response

Static Private Attributes

tuple _ERROR_SOURCES = ('Server', 'Client')

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index