|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.kernel.log.LogEvent
public class LogEvent
This class holds represents the log event parameters
| Constructor Summary | |
|---|---|
LogEvent()
Create a new LogEvent with all elements set to their defaults. |
|
LogEvent(String logName,
Date timestamp,
int logLevel,
String cfgName,
String appId,
String logSource,
String hostName,
String processID,
String threadName,
String className,
String methodName,
int lineNr,
String summary,
String detail)
Create a new LogEvent |
|
| Method Summary | |
|---|---|
String |
getAppId()
Returns the application name view |
String |
getAppName()
Deprecated. use getAppId() instead |
String |
getCfgName()
Returns the config name |
String |
getClassName()
Returns the class name |
String |
getHostname()
Returns the hostname |
int |
getLineNr()
Returns the line number |
int |
getLoggingLevel()
Returns the logging level |
String |
getLogName()
Returns the log name |
String |
getLogSource()
Returns the source |
String |
getLogStringDetail()
Returns the log string detail. |
ArrayList |
getLogStringDetailAsList()
Returns the log string detail. |
String |
getLogStringSummary()
Returns the log string summary |
String |
getMethodName()
Returns the method name |
String |
getProcessId()
Returns the processid |
String |
getThreadname()
Returns the threadname |
Date |
getTime()
Returns the time |
boolean |
isNotificationEvent()
Returns true if the log event is a notification log event |
boolean |
isPerformanceEvent()
Returns true if the log event is a performance log event |
boolean |
isStatisticsEvent()
Returns true if the log event is a statistics log event |
void |
reset()
Resets the log event. |
void |
setAppId(String value)
Sets the application id |
void |
setAppName(String value)
Deprecated. use setAppId(String) instead |
void |
setCfgName(String value)
Sets the config name |
void |
setClassName(String value)
Sets the class name |
void |
setHostname(String value)
Sets the hostname |
void |
setLineNr(int value)
Sets the line number |
void |
setLoggingLevel(int value)
Sets the logging level |
void |
setLogName(String value)
Sets the log name |
void |
setLogSource(String value)
Sets the source |
void |
setLogStringDetail(ArrayList list)
Sets the log string detail. |
void |
setLogStringDetail(String value)
Sets the log string detail. |
void |
setLogStringSummary(String value)
Sets the log string summary |
void |
setMethodName(String value)
Sets the method name |
void |
setProcessId(String value)
Sets the processid |
void |
setThreadname(String value)
Sets the threadname |
void |
setTime(Date date)
Sets the time |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogEvent()
String and Date members are set to
null, int member are set to 0
public LogEvent(String logName,
Date timestamp,
int logLevel,
String cfgName,
String appId,
String logSource,
String hostName,
String processID,
String threadName,
String className,
String methodName,
int lineNr,
String summary,
String detail)
logName - The name of the loggertimestamp - The timestamp of the log eventlogLevel - The error levelcfgName - The log config nameappId - The log application idlogSource - The log event sourcehostName - The host name that caused the logprocessID - The process ID from the process that caused the logthreadName - The thread name that caused the logclassName - The class that caused the logmethodName - The method that caused the loglineNr - The linenr that caused the logsummary - A summary log stringdetail - A detail log string| Method Detail |
|---|
public void reset()
String and Date members are set to
null, int member are set to 0
public String getLogName()
public String getHostname()
public String getThreadname()
public String getProcessId()
public String getCfgName()
public String getAppId()
public String getAppName()
getAppId() instead
public String getLogSource()
public Date getTime()
public String getLogStringSummary()
public String getLogStringDetail()
public ArrayList getLogStringDetailAsList()
public String getClassName()
public String getMethodName()
public int getLoggingLevel()
public int getLineNr()
public boolean isPerformanceEvent()
public boolean isStatisticsEvent()
public boolean isNotificationEvent()
public void setLogName(String value)
value - A log namepublic void setHostname(String value)
value - A hostnamepublic void setThreadname(String value)
value - A threadnamepublic void setProcessId(String value)
value - A process idpublic void setCfgName(String value)
value - An config namepublic void setAppId(String value)
value - An application idpublic void setAppName(String value)
setAppId(String) instead
value - An application namepublic void setLogSource(String value)
value - A sourcepublic void setTime(Date date)
date - A datepublic void setLogStringSummary(String value)
value - A summary log stringpublic void setLogStringDetail(String value)
setLogStringDetail(String)
or setLogStringDetail(ArrayList). The passed string may
contain CR, LF characters
value - A detail log string. The stpublic void setLogStringDetail(ArrayList list)
setLogStringDetail(String)
or setLogStringDetail(ArrayList).
list - A list of detail log string. The strings must not contain
CR or LF characterspublic void setClassName(String value)
vale - A class namepublic void setMethodName(String value)
value - A method namepublic void setLoggingLevel(int value)
value - A logging levelpublic void setLineNr(int value)
value - A line number
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||