Package org.hcjf.log

Class Log.LogRecord

  • Enclosing class:
    Log

    public static final class Log.LogRecord
    extends java.lang.Object
    This 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.String getClassName()
      Returns the name of the class where the log is written.
      ServiceSession getCurrentSession()
      Returns the session instance owner of this record.
      java.util.Date getDate()
      Returns the record date
      Log.LogGroup getGroup()
      Returns the record group.
      java.util.UUID getId()
      Returns the id of log record.
      java.lang.String getLineNumber()
      Returns the line number where the log is written.
      java.lang.String getMessage()
      Returns the last version of the message.
      java.lang.String getMethodName()
      Returns the name of the method where the log is written.
      java.lang.String getOriginalMessage()
      Returns the original message.
      java.lang.Object[] getParams()
      Returns the log record params.
      java.lang.String getTag()
      Returns the log record tag.
      java.lang.Throwable getThrowable()
      Returns the throwable instance of the record.
      java.lang.String toString()
      Returns de format message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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:
        toString in class java.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.