Class LogEventImpl

  • All Implemented Interfaces:
    LogEvent

    public class LogEventImpl
    extends Object
    implements LogEvent
    Author:
    sanshriv
    • Constructor Detail

      • LogEventImpl

        public LogEventImpl()
      • LogEventImpl

        public LogEventImpl​(LogRecord rec)
    • Method Detail

      • getComponentId

        public String getComponentId()
        Description copied from interface: LogEvent
        Integer value of the log Level.
        Specified by:
        getComponentId in interface LogEvent
        Returns:
      • getLevel

        public String getLevel()
        Description copied from interface: LogEvent
        The name of the Level for this event.
        Specified by:
        getLevel in interface LogEvent
        Returns:
      • getLevelValue

        public int getLevelValue()
        Specified by:
        getLevelValue in interface LogEvent
        Returns:
      • getLogger

        public String getLogger()
        Description copied from interface: LogEvent
        Logger name identifying the source of this event.
        Specified by:
        getLogger in interface LogEvent
        Returns:
      • getMessage

        public String getMessage()
        Description copied from interface: LogEvent
        The message body including the stack trace of the associated Exception.
        Specified by:
        getMessage in interface LogEvent
        Returns:
      • getMessageId

        public String getMessageId()
        Description copied from interface: LogEvent
        The message id for this log event.
        Specified by:
        getMessageId in interface LogEvent
        Returns:
      • getThreadId

        public long getThreadId()
        Description copied from interface: LogEvent
        The thread ID where this log event originated.
        Specified by:
        getThreadId in interface LogEvent
        Returns:
      • getThreadName

        public String getThreadName()
        Description copied from interface: LogEvent
        Thread name from where this log event originated.
        Specified by:
        getThreadName in interface LogEvent
        Returns:
      • getTimeMillis

        public long getTimeMillis()
        Description copied from interface: LogEvent
        Raw timestamp in milliseconds.
        Specified by:
        getTimeMillis in interface LogEvent
        Returns:
      • getTimestamp

        public String getTimestamp()
        Description copied from interface: LogEvent
        The formatted timestamp in the log event.
        Specified by:
        getTimestamp in interface LogEvent
        Returns:
      • setComponentId

        public void setComponentId​(String componentId)
        Parameters:
        componentId - the componentId to set
      • setLevel

        public void setLevel​(String level)
        Parameters:
        level - the level to set
      • setLevelValue

        public void setLevelValue​(int levelValue)
        Parameters:
        levelValue - the levelValue to set
      • setLogger

        public void setLogger​(String logger)
        Parameters:
        logger - the logger to set
      • setMessage

        public void setMessage​(String message)
        Parameters:
        message - the message to set
      • setMessageId

        public void setMessageId​(String messageId)
        Parameters:
        messageId - the messageId to set
      • setThreadId

        public void setThreadId​(long threadId)
        Parameters:
        threadId - the threadId to set
      • setThreadName

        public void setThreadName​(String threadName)
        Parameters:
        threadName - the threadName to set
      • setTimeMillis

        public void setTimeMillis​(long timeMillis)
        Parameters:
        timeMillis - the timeMillis to set
      • setTimestamp

        public void setTimestamp​(String timestamp)
        Parameters:
        timestamp - the timestamp to set