class SiteMonitor.SiteMonLogWriter
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private org.apache.log4j.Logger |
logger
A reference to the site monitor logger.
|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
SiteMonLogWriter()
Construct the log writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
log(java.lang.String msgid)
Writes a log file entry for the given message id.
|
void |
log(java.lang.String msgid,
java.lang.Exception ex)
Writes a log file entry for the given message id and exception.
|
void |
log(java.lang.String msgid,
java.lang.String value)
Writes a log file entry for the given message id.
|
private static final long serialVersionUID
private org.apache.log4j.Logger logger
public void log(java.lang.String msgid)
msgid - (String) The id for the message to log. If necessary,
the msgid is automatically prefixed with "MSG.".public void log(java.lang.String msgid,
java.lang.String value)
msgid - (String) The id for the message to log. If necessary,
the msgid is automatically prefixed with "MSG.".value - (String) The value to replace in the message text.public void log(java.lang.String msgid,
java.lang.Exception ex)
msgid - (String) The id for the message to log. If necessary,
the msgid is automatically prefixed with "MSG.".ex - (Exception) The exception that triggered the log entry.