|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.sip.SipLogger
public class SipLogger
This class passes log calls from JAIN-SIP to log4j, so that it is possible to change the log level for the JAIN-SIP stack in logging.properties
| Field Summary |
|---|
| Fields inherited from interface gov.nist.core.LogLevels |
|---|
TRACE_DEBUG, TRACE_ERROR, TRACE_EXCEPTION, TRACE_FATAL, TRACE_INFO, TRACE_MESSAGES, TRACE_NONE, TRACE_TRACE, TRACE_WARN |
| Constructor Summary | |
|---|---|
SipLogger()
|
|
| Method Summary | |
|---|---|
void |
closeLogFile()
Dummy implementation for ServerLogger.closeLogFile() |
void |
disableLogging()
Disable logging altogether. |
void |
enableLogging()
Enable logging (globally). |
int |
getLineCount()
Get the line count in the log stream. |
InetSocketAddress |
getLocalAddressForDestination(InetAddress dst,
int dstPort,
InetAddress localAddress,
String transport)
Returns a local address to use with the specified TCP destination. |
String |
getLoggerName()
Returns a logger name. |
boolean |
isLoggingEnabled()
Determines whether logging is enabled. |
boolean |
isLoggingEnabled(int logLevel)
Return true/false if logging is enabled at a given level. |
void |
logDebug(String message)
Log a message into the log file. |
void |
logError(String message)
Log an error message. |
void |
logError(String message,
Exception ex)
Logs an exception and an error message error message. |
void |
logException(Exception exception)
Prints the specified exception as a warning. |
void |
logException(Throwable ex)
Log an exception. |
void |
logFatalError(String message)
Log an error message. |
void |
logInfo(String string)
Log an info message. |
void |
logMessage(gov.nist.javax.sip.message.SIPMessage message,
String from,
String to,
boolean sender,
long time)
Logs the specified message and details. |
void |
logMessage(gov.nist.javax.sip.message.SIPMessage message,
String from,
String to,
String status,
boolean sender)
Logs the specified message and details. |
void |
logMessage(gov.nist.javax.sip.message.SIPMessage message,
String from,
String to,
String status,
boolean sender,
long time)
Logs the specified message and details. |
void |
logStackTrace()
logs a stack trace. |
void |
logStackTrace(int traceLevel)
logs a stack trace. |
void |
logTrace(String message)
Logs the specified trace with a debuf level. |
void |
logWarning(String string)
Log a warning message. |
void |
setBuildTimeStamp(String buildTimeStamp)
Logs the build time stamp of the jain-sip reference implementation. |
void |
setSipStack(javax.sip.SipStack sipStack)
A dummy implementation. |
void |
setStackProperties(Properties stackProperties)
Dummy implementation for ServerLogger.setStackProperties(
Properties) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SipLogger()
| Method Detail |
|---|
public void logStackTrace()
logStackTrace in interface gov.nist.core.StackLoggerpublic void logStackTrace(int traceLevel)
logStackTrace in interface gov.nist.core.StackLoggertraceLevel - currently unused.public int getLineCount()
getLineCount in interface gov.nist.core.StackLoggerpublic void logException(Throwable ex)
logException in interface gov.nist.core.StackLoggerex - the exception that we are to log.public void logDebug(String message)
logDebug in interface gov.nist.core.StackLoggermessage - message to log into the log file.public void logFatalError(String message)
logFatalError in interface gov.nist.core.StackLoggermessage - --
error message to log.public void logError(String message)
logError in interface gov.nist.core.StackLoggermessage - error message to log.public boolean isLoggingEnabled()
isLoggingEnabled in interface gov.nist.core.StackLoggerpublic boolean isLoggingEnabled(int logLevel)
isLoggingEnabled in interface gov.nist.core.StackLoggerlogLevel - the level that we'd like to check loggability for.
public void logError(String message,
Exception ex)
logError in interface gov.nist.core.StackLoggermessage - that message that we'd like to log.ex - the exception that we'd like to log.public void logWarning(String string)
logWarning in interface gov.nist.core.StackLoggerstring - the warning that we'd like to logpublic void logInfo(String string)
logInfo in interface gov.nist.core.StackLoggerstring - the message that we'd like to log.public void disableLogging()
disableLogging in interface gov.nist.core.StackLoggerpublic void enableLogging()
enableLogging in interface gov.nist.core.StackLoggerpublic void setBuildTimeStamp(String buildTimeStamp)
setBuildTimeStamp in interface gov.nist.core.StackLoggerbuildTimeStamp - the build time stamp of the jain-sip reference
implementation.public void setStackProperties(Properties stackProperties)
ServerLogger.setStackProperties(
Properties)
setStackProperties in interface gov.nist.core.ServerLoggersetStackProperties in interface gov.nist.core.StackLoggerpublic void closeLogFile()
ServerLogger.closeLogFile()
closeLogFile in interface gov.nist.core.ServerLogger
public void logMessage(gov.nist.javax.sip.message.SIPMessage message,
String from,
String to,
boolean sender,
long time)
logMessage in interface gov.nist.core.ServerLoggermessage - the message to logfrom - the message senderto - the message addresseesender - determines whether we are the origin of this message.time - the date this message was received at.
public void logMessage(gov.nist.javax.sip.message.SIPMessage message,
String from,
String to,
String status,
boolean sender,
long time)
logMessage in interface gov.nist.core.ServerLoggermessage - the message to logfrom - the message senderto - the message addresseestatus - message statussender - determines whether we are the origin of this message.time - the date this message was received at.
public void logMessage(gov.nist.javax.sip.message.SIPMessage message,
String from,
String to,
String status,
boolean sender)
logMessage in interface gov.nist.core.ServerLoggermessage - the message to logfrom - the message senderto - the message addresseestatus - message statussender - determines whether we are the origin of this message.public void logException(Exception exception)
logException in interface gov.nist.core.ServerLoggerexception - the Exception we are passed from jain-sip.public void setSipStack(javax.sip.SipStack sipStack)
setSipStack in interface gov.nist.core.ServerLoggersipStack - ignored;public String getLoggerName()
getLoggerName in interface gov.nist.core.StackLoggerpublic void logTrace(String message)
logTrace in interface gov.nist.core.StackLoggermessage - the trace to log.
public InetSocketAddress getLocalAddressForDestination(InetAddress dst,
int dstPort,
InetAddress localAddress,
String transport)
throws IOException
dst - the destination address that the socket would need to connect
to.dstPort - the port number that the connection would be established
with.localAddress - the address that we would like to bind on
(null for the "any" address).transport - the transport that will be used TCP ot TLS
IOException - if we fail binding the local socket
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||