Package org.hcjf.log
Class Log.LogRecord
- java.lang.Object
-
- org.hcjf.log.Log.LogRecord
-
- Enclosing class:
- Log
public static final class Log.LogRecord extends java.lang.ObjectThis class contains all the information to write a record in the log. The instances of this class will be queued sorted chronologically waiting for be write
-
-
Method Summary
Modifier and Type Method Description java.lang.StringgetClassName()Returns the name of the class where the log is written.ServiceSessiongetCurrentSession()Returns the session instance owner of this record.java.util.DategetDate()Returns the record dateLog.LogGroupgetGroup()Returns the record group.java.util.UUIDgetId()Returns the id of log record.java.lang.StringgetLineNumber()Returns the line number where the log is written.java.lang.StringgetMessage()Returns the last version of the message.java.lang.StringgetMethodName()Returns the name of the method where the log is written.java.lang.StringgetOriginalMessage()Returns the original message.java.lang.Object[]getParams()Returns the log record params.java.lang.StringgetTag()Returns the log record tag.java.lang.ThrowablegetThrowable()Returns the throwable instance of the record.java.lang.StringtoString()Returns de format message.
-
-
-
Method Detail
-
getId
public java.util.UUID getId()
Returns the id of log record.- Returns:
- Log record id.
-
getCurrentSession
public ServiceSession getCurrentSession()
Returns the session instance owner of this record.- Returns:
- Session instance.
-
getDate
public java.util.Date getDate()
Returns the record date- Returns:
- Record date.
-
getGroup
public Log.LogGroup getGroup()
Returns the record group.- Returns:
- Record group.
-
getTag
public java.lang.String getTag()
Returns the log record tag.- Returns:
- Log record tag.
-
getMessage
public java.lang.String getMessage()
Returns the last version of the message.- Returns:
- Record message.
-
getOriginalMessage
public java.lang.String getOriginalMessage()
Returns the original message.- Returns:
- Original message.
-
toString
public java.lang.String toString()
Returns de format message.- Overrides:
toStringin classjava.lang.Object- Returns:
- Format message.
-
getParams
public java.lang.Object[] getParams()
Returns the log record params.- Returns:
- Log record params.
-
getThrowable
public java.lang.Throwable getThrowable()
Returns the throwable instance of the record.- Returns:
- Throwable instance.
-
getClassName
public java.lang.String getClassName()
Returns the name of the class where the log is written.- Returns:
- Class name.
-
getMethodName
public java.lang.String getMethodName()
Returns the name of the method where the log is written.- Returns:
- Method name.
-
getLineNumber
public java.lang.String getLineNumber()
Returns the line number where the log is written.- Returns:
- Line number.
-
-