NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip
Interface LogRecordFactory

All Known Implementing Classes:
DefaultMessageLogFactory

public interface LogRecordFactory

The stack calls the message log factory to create logging records. The default implementatation of this interface can be replaced using the gov.nist.javax.sip.LOG_RECORD_FACTORY property. This override is provided to allow applications to log axuiliary information (such as environment conditions etc) when messages are logged in the stack.

Author:
M. Ranganathan

Method Summary
 LogRecord createLogRecord(String message, String source, String destination, long timeStamp, boolean isSender, String firstLine, String tid, String callId, long timestampVal)
          Create a log record.
 

Method Detail

createLogRecord

LogRecord createLogRecord(String message,
                          String source,
                          String destination,
                          long timeStamp,
                          boolean isSender,
                          String firstLine,
                          String tid,
                          String callId,
                          long timestampVal)
Create a log record.

Parameters:
message - -- the message to be logged.
source - -- host:port of the source of the message.
destination - -- host:port of the destination of the message.
timeStamp - -- The time at which this message was seen by the stack or sent out by the stack.
isSender - -- true if we are sending the message false otherwise.
firstLine - -- the first line of the message to be logged.
tid - -- the transaction id
callId - -- the call id
timestampVal - -- the timestamp header value of the incoming message.
Returns:
-- a log record with the appropriate fields set.

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.