Package org.openqa.selenium.logging
Class LoggingHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- org.openqa.selenium.logging.LoggingHandler
-
public class LoggingHandler extends java.util.logging.Handler
A custom handler used to record log entries.This handler queues up log records as they come, up to MAX_RECORDS (currently 1000) records. If it reaches this capacity it will remove the older records from the queue before adding the next one.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
static LoggingHandler
getInstance()
java.util.Collection<LogEntry>
getRecords()
void
publish(java.util.logging.LogRecord logRecord)
-
-
-
Method Detail
-
getInstance
public static LoggingHandler getInstance()
-
getRecords
public java.util.Collection<LogEntry> getRecords()
- Returns:
- an unmodifiable list of LogEntry.
-
publish
public void publish(java.util.logging.LogRecord logRecord)
- Specified by:
publish
in classjava.util.logging.Handler
-
flush
public void flush()
- Specified by:
flush
in classjava.util.logging.Handler
-
close
public void close() throws java.lang.SecurityException
- Specified by:
close
in classjava.util.logging.Handler
- Throws:
java.lang.SecurityException
-
-