org.openqa.selenium.logging
Class LogEntry

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

public class LogEntry
extends Object

Represents a single log statement.


Constructor Summary
LogEntry(Level level, long timestamp, String message)
           
 
Method Summary
 Level getLevel()
          Gets the logging entry's severity.
 String getMessage()
          Gets the log entry's message.
 long getTimestamp()
          Gets the timestamp of the log statement in milliseconds since UNIX Epoch.
 org.json.JSONObject toJson()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 Detail

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 org.json.JSONObject toJson()


Copyright © 2012. All Rights Reserved.