Class LogEntry


  • public class LogEntry
    extends java.lang.Object
    Represents a full log record from the logger. Important for the most loggers are the following information
    1. timestamp: for the time, from the log entry
    2. messages: all messages in this record
    3. thread: the Thread in that the record was created
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Class<?> clazz
      The class in that the logger should print if the class is defined The class can be null
      protected LogLevel logLevel
      The LogLevel of this LogEntry.
      protected java.lang.String[] messages
      All messages, which should print from the logger as array of messages to execute more message as one in a entry
      protected java.lang.Thread thread
      The Thread instance in that the LogEntry was created
      protected java.lang.Throwable throwable
      An optional Throwable instance, for error messages that are should interesting for the log handlers
      protected long timeStamp
      The timestamp in that the log record was create in millis from since 01.01.1970 00:00:00
    • Constructor Summary

      Constructors 
      Constructor Description
      LogEntry​(long timeStamp, java.lang.Class<?> clazz, java.lang.String[] messages, LogLevel logLevel, java.lang.Throwable throwable, java.lang.Thread thread)  
    • Field Detail

      • timeStamp

        protected final long timeStamp
        The timestamp in that the log record was create in millis from since 01.01.1970 00:00:00
      • clazz

        protected final java.lang.Class<?> clazz
        The class in that the logger should print if the class is defined The class can be null
      • messages

        protected final java.lang.String[] messages
        All messages, which should print from the logger as array of messages to execute more message as one in a entry

        It's not allowed to set the array or the entries of that to null. The log entry will be blocked

      • logLevel

        protected final LogLevel logLevel
        The LogLevel of this LogEntry. The LogLevel must be not null, but it can be custom created
      • throwable

        protected final java.lang.Throwable throwable
        An optional Throwable instance, for error messages that are should interesting for the log handlers
      • thread

        protected final java.lang.Thread thread
        The Thread instance in that the LogEntry was created
    • Constructor Detail

      • LogEntry

        public LogEntry​(long timeStamp,
                        java.lang.Class<?> clazz,
                        java.lang.String[] messages,
                        LogLevel logLevel,
                        java.lang.Throwable throwable,
                        java.lang.Thread thread)
    • Method Detail

      • getTimeStamp

        public long getTimeStamp()
      • getClazz

        public java.lang.Class<?> getClazz()
      • getMessages

        public java.lang.String[] getMessages()
      • getLogLevel

        public LogLevel getLogLevel()
      • getThrowable

        public java.lang.Throwable getThrowable()
      • getThread

        public java.lang.Thread getThread()