Class LogEntry

  • Direct Known Subclasses:
    ProfilerLogEntry

    public class LogEntry
    extends java.lang.Object
    Represents a single log statement.
    • Constructor Summary

      Constructors 
      Constructor Description
      LogEntry​(java.util.logging.Level level, long timestamp, java.lang.String message)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.logging.Level getLevel()
      Gets the logging entry's severity.
      java.lang.String getMessage()
      Gets the log entry's message.
      long getTimestamp()
      Gets the timestamp of the log statement in milliseconds since UNIX Epoch.
      java.util.Map<java.lang.String,​java.lang.Object> toJson()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • LogEntry

        public LogEntry​(java.util.logging.Level level,
                        long timestamp,
                        java.lang.String message)
        Parameters:
        level - the severity of the log entry
        timestamp - UNIX Epoch timestamp at which this log entry was created
        message - ew the log entry's message
    • Method Detail

      • getLevel

        public java.util.logging.Level getLevel()
        Gets the logging entry's severity.
        Returns:
        severity of log statement
      • getTimestamp

        public long getTimestamp()
        Gets the timestamp of the log statement in milliseconds since UNIX Epoch.
        Returns:
        timestamp as UNIX Epoch
      • getMessage

        public java.lang.String getMessage()
        Gets the log entry's message.
        Returns:
        the log statement
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toJson

        public java.util.Map<java.lang.String,​java.lang.Object> toJson()