|
|||||||||
| Home >> All >> com >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.gui
Class JspmLogWriter

java.lang.Objectcom.gui.JspmLogWriter
- All Implemented Interfaces:
- java.io.Serializable
- public class JspmLogWriter
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
JSM log writer.
- Version:
- 0.0.1
| Field Summary | |
private int |
debugLevel
|
private java.io.PrintWriter |
out
|
private java.io.PrintStream |
pos
|
| Constructor Summary | |
JspmLogWriter(java.io.PrintStream ps,
int debugLevel)
|
|
JspmLogWriter(java.io.PrintWriter pw,
int debugLevel)
|
|
JspmLogWriter(java.lang.String fileName,
int debugLevel)
|
|
| Method Summary | |
private java.lang.String |
adjust(int in,
int len)
|
void |
log(int severity,
java.lang.String clas,
java.lang.String function,
java.lang.String message)
Logs a message to a the previously defined logfile. |
void |
logMessage(int severity,
java.lang.String clas,
java.lang.String function,
java.lang.String message)
Logs a message to a the previously defined logfile. |
private java.lang.String |
sev2char(int severity)
Returns the severity as a string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
debugLevel
private int debugLevel
out
private java.io.PrintWriter out
pos
private java.io.PrintStream pos
| Constructor Detail |
JspmLogWriter
public JspmLogWriter(java.lang.String fileName, int debugLevel)
JspmLogWriter
public JspmLogWriter(java.io.PrintStream ps, int debugLevel)
JspmLogWriter
public JspmLogWriter(java.io.PrintWriter pw, int debugLevel)
| Method Detail |
sev2char
private java.lang.String sev2char(int severity)
- Returns the severity as a string.
adjust
private java.lang.String adjust(int in, int len)
logMessage
public void logMessage(int severity,
java.lang.String clas,
java.lang.String function,
java.lang.String message)
- Logs a message to a the previously defined logfile. Each entry has the format:
Date/Time - Class - [Severity] - Function - Message The severities are as follows: F: Fatal [0], E: Error [1], W: Warning[2], I: Info[3], D: Debug[4]. An entry is only written, if the supplied severity is > then the debug level. The debuglevel can be set using the function setDebugLevel. In case the debugFile is not set the error message will be written to stderr.
The following line shows an example:
12/3/00 4:11 PM - TNGEM - [W] - CalendarCheckTimeCould not check calendar: ErrorCode: -811 Date is on but time is off
log
public void log(int severity,
java.lang.String clas,
java.lang.String function,
java.lang.String message)
- Logs a message to a the previously defined logfile. Each entry has the format:
Date/Time - Class - [Severity] - Function - Message The severities are as follows: F: Fatal [0], E: Error [1], W: Warning[2], I: Info[3], D: Debug[4]. An entry is only written, if the supplied severity is > then the debug level. The debuglevel can be set using the function setDebugLevel. In case the debugFile is not set the error message will be written to stderr.
The following line shows an example:
12/3/00 4:11 PM - TNGEM - [W] - CalendarCheckTimeCould not check calendar: ErrorCode: -811 Date is on but time is off
|
|||||||||
| Home >> All >> com >> [ gui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.gui.JspmLogWriter