|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.netscape.certsrv.logging.SystemEvent
public class SystemEvent
The log event object that carries a log message. This class represents System events which are CMS events which need to be logged to a log file.
MessageFormat,
LogResources,
Serialized Form| Field Summary | |
|---|---|
protected java.lang.Object[] |
mParams
|
| Constructor Summary | |
|---|---|
SystemEvent(java.lang.Exception e)
Constructs a SystemEvent message from a base exception. |
|
SystemEvent(java.lang.String msgFormat)
Constructs a SystemEvent message event. |
|
SystemEvent(java.lang.String msgFormat,
java.lang.Exception exception)
Constructs a SystemEvent message from an exception. |
|
SystemEvent(java.lang.String msgFormat,
java.lang.Object[] params)
Constructs a SystemEvent message event with a list of parameters that will be substituted into the message format. |
|
SystemEvent(java.lang.String msgFormat,
java.lang.String param)
Constructs a SystemEvent message with a parameter. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
getBundleName()
Retrieves bundle name. |
java.lang.String |
getEventType()
Retrieves log event type. |
int |
getLevel()
Retrieves log level. |
java.lang.String |
getMessage()
Returns the current message format string. |
boolean |
getMultiline()
Retrieves log multiline attribute. |
int |
getNTEventType()
Retrieves NT specific log event type. |
java.lang.Object[] |
getParameters()
Returns a list of parameters. |
int |
getSource()
Retrieves log source. |
long |
getTimeStamp()
Retrieves event time stamp. |
void |
setBundleName(java.lang.String bundle)
Sets the resource bundle name for this class instance. |
void |
setEventType(java.lang.String eventType)
Sets log event type. |
void |
setLevel(int level)
Sets log level, NT log event type. |
void |
setMultiline(boolean multiline)
Sets log multiline attribute. |
void |
setSource(int source)
Sets log source. |
java.lang.String |
toContent()
Returns localized message string. |
java.lang.String |
toContent(java.util.Locale locale)
Returns the string based on the given locale. |
java.lang.String |
toString()
Return string representation of log message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.Object[] mParams
| Constructor Detail |
|---|
public SystemEvent(java.lang.String msgFormat)
msgFormat - The message string.
public SystemEvent(java.lang.String msgFormat,
java.lang.String param)
new SystemEvent("failed to load {0}", fileName);
msgFormat - Details in message string format.param - Message string parameter.
public SystemEvent(java.lang.String msgFormat,
java.lang.Exception exception)
try {
...
} catch (IOExeption e) {
logHandler.log(new SystemEvent("Encountered System Error {0}", e);
}
msgFormat - Exception details in message string format.exception - System exception.public SystemEvent(java.lang.Exception e)
try {
...
} catch (Exception e) {
logHandler.log(new SystemEvent(e));
}
e - CMS exception.
public SystemEvent(java.lang.String msgFormat,
java.lang.Object[] params)
msgFormat - Message string format.params - List of message format parameters.| Method Detail |
|---|
public java.lang.String getMessage()
public java.lang.Object[] getParameters()
public java.lang.String toContent()
toContent in interface ILogEventpublic java.lang.String toContent(java.util.Locale locale)
toContent in interface ILogEventlocale - Locale.
public void setBundleName(java.lang.String bundle)
setBundleName in interface IBundleLogEventbundle - String with the name of resource bundle.protected java.lang.String getBundleName()
public int getSource()
getSource in interface ILogEventpublic void setSource(int source)
source - Integer source id.public int getLevel()
getLevel in interface ILogEventpublic int getNTEventType()
getNTEventType in interface ILogEventpublic void setLevel(int level)
level - Integer log level value.public boolean getMultiline()
getMultiline in interface ILogEventpublic void setMultiline(boolean multiline)
multiline - Boolean multiline value.public long getTimeStamp()
getTimeStamp in interface ILogEventpublic java.lang.String getEventType()
getEventType in interface ILogEventpublic void setEventType(java.lang.String eventType)
setEventType in interface ILogEventeventType - String containing the type of event.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||