Пример #1
0
  /**
   * Return true/false if logging is enabled at a given level.
   *
   * @param logLevel the level that we'd like to check loggability for.
   * @return always <tt>true</tt> regardless of <tt>logLevel</tt>'s value.
   */
  public boolean isLoggingEnabled(int logLevel) {
    // always enable trace messages so we can receive packets
    // and log them to packet logging service
    if (logLevel == TRACE_DEBUG) return logger.isDebugEnabled();
    if (logLevel == TRACE_MESSAGES) // same as TRACE_INFO
    return true;
    if (logLevel == TRACE_NONE) return false;

    return true;
  }
Пример #2
0
 /**
  * Log a message into the log file.
  *
  * @param message message to log into the log file.
  */
 public void logDebug(String message) {
   if (logger.isDebugEnabled()) logger.debug("Debug output from the JAIN-SIP stack: " + message);
 }
Пример #3
0
 /**
  * Logs the specified trace with a debuf level.
  *
  * @param message the trace to log.
  */
 public void logTrace(String message) {
   if (logger.isDebugEnabled()) logger.debug(message);
 }