1/* 2 * JBoss, Home of Professional Open Source. 3 * 4 * This code has been contributed to the public domain. 5 * This software is provided by NIST as a service and is expressly 6 * provided "AS IS." NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED 7 * OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF 8 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT 9 * AND DATA ACCURACY. NIST does not warrant or make any representations 10 * regarding the use of the software or the results thereof, including but 11 * not limited to the correctness, accuracy, reliability or usefulness of 12 * the software. 13 * 14 * Permission to use this software is contingent upon your acceptance 15 * of the terms of this agreement. 16 */ 17package gov.nist.core; 18 19import java.util.Properties; 20 21import javax.sip.SipStack; 22 23import gov.nist.javax.sip.message.SIPMessage; 24 25/** 26 * @author jean.deruelle@gmail.com 27 * 28 */ 29public interface ServerLogger extends LogLevels { 30 31 32 void closeLogFile(); 33 34 void logMessage(SIPMessage message, String from, String to, boolean sender, long time); 35 36 void logMessage(SIPMessage message, String from, String to, String status, 37 boolean sender, long time); 38 39 void logMessage(SIPMessage message, String from, String to, String status, 40 boolean sender); 41 42 void logException(Exception ex); 43 44 public void setStackProperties(Properties stackProperties); 45 46 public void setSipStack(SipStack sipStack); 47 48 49} 50