|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.core.LogWriter
Log System Errors. Also used for debugging log.
Field Summary | |
static boolean |
needsLogging
Flag to indicate that logging is enabled. |
static PrintWriter |
printWriter
Print writer that is used to write out the log file. |
static int |
TRACE_AUTHENTICATION
Trace authentication sequences |
static int |
TRACE_DEBUG
Debug trace level (all tracing enabled). |
static int |
TRACE_EXCEPTION
Trace exception processing |
static int |
TRACE_INITIALIZATION
Trace initialization code |
static int |
TRACE_MESSAGES
Trace message processing |
static int |
TRACE_NONE
Dont trace |
static PrintStream |
traceWriter
print stream for writing out trace |
Constructor Summary | |
LogWriter()
|
Method Summary | |
static int |
getTraceLevel()
Get the trace level for the stack. |
static void |
logException(Exception ex)
|
static void |
logMessage(int level,
String message)
Log a message into the log file. |
static void |
logMessage(String message)
Log a message into the log file. |
static void |
logMessage(String message,
String logFileName)
|
static void |
logStackTrace()
log a stack trace.. |
static void |
logTrace(Throwable sframe)
Log an excption. 1.4x Code contributed by Brad Templeton |
static void |
setLogFileName(String name)
Set the log file name |
static void |
setTraceLevel(int level)
Set the trace level for the stack. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static int TRACE_NONE
public static int TRACE_INITIALIZATION
public static int TRACE_AUTHENTICATION
public static int TRACE_MESSAGES
public static int TRACE_EXCEPTION
public static int TRACE_DEBUG
public static PrintWriter printWriter
public static PrintStream traceWriter
public static boolean needsLogging
Constructor Detail |
public LogWriter()
Method Detail |
public static void logStackTrace()
public static void logException(Exception ex)
public static void logTrace(Throwable sframe)
sframe
- - frame to log grace.public static void setLogFileName(String name)
name
- is the name of the log file to set.public static void logMessage(String message, String logFileName)
public static void logMessage(int level, String message)
message
- message to log into the log file.public static void logMessage(String message)
message
- message to log into the log file.public static void setTraceLevel(int level)
public static int getTraceLevel()
|
NIST SIP Parser and Stack (v1.2) API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |