Class LogEntry

java.lang.Object
org.openqa.selenium.logging.LogEntry
Direct Known Subclasses:
ProfilerLogEntry

public class LogEntry extends Object
Represents a single log statement.
  • Constructor Details

    • LogEntry

      public LogEntry(Level level, long timestamp, 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 Details

    • getLevel

      public 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 String getMessage()
      Gets the log entry's message.
      Returns:
      the log statement
    • toString

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

      public Map<String,Object> toJson()