Package org.openqa.selenium.logging
Class LogEntry
- java.lang.Object
-
- org.openqa.selenium.logging.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()
-
-
-
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 classjava.lang.Object
-
toJson
public java.util.Map<java.lang.String,java.lang.Object> toJson()
-
-