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.HandlerA 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 voidclose()voidflush()static LoggingHandlergetInstance()java.util.Collection<LogEntry>getRecords()voidpublish(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:
publishin classjava.util.logging.Handler
-
flush
public void flush()
- Specified by:
flushin classjava.util.logging.Handler
-
close
public void close() throws java.lang.SecurityException- Specified by:
closein classjava.util.logging.Handler- Throws:
java.lang.SecurityException
-
-