1package gov.nist.javax.sip.stack;
2
3import gov.nist.javax.sip.LogRecord;
4import gov.nist.javax.sip.LogRecordFactory;
5
6/**
7 * The Default Message log factory. This can be replaced as a stack
8 * configuration parameter.
9 *
10 * @author M. Ranganathan
11 *
12 */
13public class DefaultMessageLogFactory implements LogRecordFactory {
14
15    public LogRecord createLogRecord(String message, String source,
16            String destination, String timeStamp, boolean isSender,
17            String firstLine, String tid, String callId, long tsHeaderValue) {
18        return new MessageLog(message, source, destination, timeStamp,
19                isSender, firstLine, tid, callId, tsHeaderValue);
20    }
21
22    public LogRecord createLogRecord(String message, String source,
23            String destination, long timeStamp, boolean isSender,
24            String firstLine, String tid, String callId, long timestampVal) {
25        return new MessageLog(message, source, destination, timeStamp,
26                isSender, firstLine, tid, callId, timestampVal);
27    }
28
29}
30