gov.nist.core
クラス LogWriter

java.lang.Object
  上位を拡張 gov.nist.core.LogWriter

public class LogWriter
extends java.lang.Object

Log System Errors. Also used for debugging log.

バージョン:
JAIN-SIP-1.1
作成者:
M. Ranganathan
, m.andrews This code is in the public domain.

フィールドの概要
static boolean needsLogging
          Flag to indicate that logging is enabled.
static int TRACE_DEBUG
          Debug trace level (all tracing enabled).
static int TRACE_EXCEPTION
          Trace exception processing
static int TRACE_MESSAGES
          Trace message processing
static int TRACE_NONE
          Dont trace
 
コンストラクタの概要
LogWriter()
           
 
メソッドの概要
 int getLineCount()
           
 int getTraceLevel()
          Get the trace level for the stack.
 void logException(java.lang.Throwable ex)
           
 void logMessage(java.lang.String message)
          Log a message into the log file.
 void logMessage(java.lang.String message, java.lang.String logFileName)
           
 void logStackTrace()
          log a stack trace..
 void logThrowable(java.lang.Throwable throwable)
           
 void logTrace(java.lang.Throwable sframe)
          Log an excption. 1.4x Code contributed by Brad Templeton
 void setLogFileName(java.lang.String name)
          Set the log file name
 void setTraceLevel(int level)
          Set the trace level for the stack.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

TRACE_NONE

public static final int TRACE_NONE
Dont trace

関連項目:
定数フィールド値

TRACE_MESSAGES

public static final int TRACE_MESSAGES
Trace message processing

関連項目:
定数フィールド値

TRACE_EXCEPTION

public static final int TRACE_EXCEPTION
Trace exception processing

関連項目:
定数フィールド値

TRACE_DEBUG

public static final int TRACE_DEBUG
Debug trace level (all tracing enabled).

関連項目:
定数フィールド値

needsLogging

public static boolean needsLogging
Flag to indicate that logging is enabled. This needs to be static and public in order to globally turn logging on or off.

コンストラクタの詳細

LogWriter

public LogWriter()
メソッドの詳細

logStackTrace

public void logStackTrace()
log a stack trace..


getLineCount

public int getLineCount()

logException

public void logException(java.lang.Throwable ex)

logThrowable

public void logThrowable(java.lang.Throwable throwable)

logTrace

public void logTrace(java.lang.Throwable sframe)
Log an excption. 1.4x Code contributed by Brad Templeton

パラメータ:
sframe - - frame to log grace.

setLogFileName

public void setLogFileName(java.lang.String name)
Set the log file name

パラメータ:
name - is the name of the log file to set.

logMessage

public void logMessage(java.lang.String message,
                       java.lang.String logFileName)

logMessage

public void logMessage(java.lang.String message)
Log a message into the log file.

パラメータ:
message - message to log into the log file.

setTraceLevel

public void setTraceLevel(int level)
Set the trace level for the stack.


getTraceLevel

public int getTraceLevel()
Get the trace level for the stack.