|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.resilientedge.util.logger.SimpleLogRecord
This class is an general implementation of a LogRecord. SimpleLogRecord objects can be used to pass logging requests between the logger and individual Handlers.
Constructor Summary | |
SimpleLogRecord()
|
Method Summary | |
java.lang.Object[] |
getInsertValues()
Return the Log Record's insert values array. |
int |
getLevel()
This method returns the log record's Level. |
Logger |
getLogger()
Return the logger that created this record. |
java.lang.String |
getLoggingClassName()
Return the class name for the object generating the log request. |
java.lang.Throwable |
getLoggingException()
Return the Log Record's exception |
java.lang.String |
getLoggingMethodName()
Return the name of the method generating the log request. |
java.lang.Thread |
getLoggingThread()
This method returns the Thread responsible for generating the log request. |
java.lang.String |
getMessage()
This method returns the actual string to be logged. |
java.lang.String |
getRawMessage()
Return the Log Record's raw message. |
long |
getTimeInMillis()
Returns the time the log record was created in milliseconds. |
java.lang.String |
getTopic()
This method returns the log record's topic. |
void |
setInsertValues(java.lang.Object[] obj)
Assign the insert values used for substitution values if a message contains expansion tokens. |
void |
setLevel(int level)
Assign the Log Records' Level |
void |
setLevel(Level level)
Assign the Log Record's Level. |
void |
setLogger(Logger logger)
Assign the Logger responsible for generating this record. |
void |
setLoggingClassName(java.lang.String className)
Assign the classname for the object generating the Log request. |
void |
setLoggingException(java.lang.Throwable exc)
Assign the exception to be logged. |
void |
setLoggingMethodName(java.lang.String methodName)
Assign the name of the Method which generated the log request. |
void |
setLoggingThread(java.lang.Thread thread)
Assign the Thread generating the log request. |
void |
setMessage(java.lang.String message)
Set the actual message to be exported. |
void |
setRawMessage(java.lang.String rawMessage)
The non-localized, non-substituted, non-formatted message. |
void |
setTimeInMillis(long timeInMillis)
Set the time the Log Record was created in milliseconds. |
void |
setTopic(java.lang.String topic)
Assign the LogRecord's topic. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleLogRecord()
Method Detail |
public void setLoggingThread(java.lang.Thread thread)
setLoggingThread
in interface LogRecord
thread
- public void setLoggingClassName(java.lang.String className)
setLoggingClassName
in interface LogRecord
className
- public void setLoggingMethodName(java.lang.String methodName)
setLoggingMethodName
in interface LogRecord
methodName
- public void setLoggingException(java.lang.Throwable exc)
setLoggingException
in interface LogRecord
exc
- public void setLogger(Logger logger)
setLogger
in interface LogRecord
logger
- public void setRawMessage(java.lang.String rawMessage)
setRawMessage
in interface LogRecord
rawMessage
- public void setMessage(java.lang.String message)
setMessage
in interface LogRecord
message
- public void setTopic(java.lang.String topic)
setTopic
in interface LogRecord
topic
- public void setLevel(int level)
setLevel
in interface LogRecord
level
- public void setLevel(Level level)
level
- public void setInsertValues(java.lang.Object[] obj)
setInsertValues
in interface LogRecord
obj
- public void setTimeInMillis(long timeInMillis)
setTimeInMillis
in interface LogRecord
timeInMillis
- public java.lang.Thread getLoggingThread()
getLoggingThread
in interface LogRecord
public java.lang.String getLoggingClassName()
getLoggingClassName
in interface LogRecord
public java.lang.String getLoggingMethodName()
getLoggingMethodName
in interface LogRecord
public java.lang.Throwable getLoggingException()
getLoggingException
in interface LogRecord
public Logger getLogger()
getLogger
in interface LogRecord
public java.lang.String getRawMessage()
getRawMessage
in interface LogRecord
public java.lang.String getMessage()
getMessage
in interface LogRecord
public java.lang.String getTopic()
getTopic
in interface LogRecord
public int getLevel()
getLevel
in interface LogRecord
public java.lang.Object[] getInsertValues()
getInsertValues
in interface LogRecord
public long getTimeInMillis()
getTimeInMillis
in interface LogRecord
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |