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 records log entries.
This handler queues up log records as they come, up to 10000 records.
If it reaches this capacity it will remove the older records
from the queue before adding the next one.
Methods inherited from class java.util.logging.Handler |
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static LoggingHandler getInstance()
getRecords
public java.util.List<LogEntry> getRecords()
- Returns:
- an unmodifiable list of LogEntry.
publish
public void publish(java.util.logging.LogRecord logRecord)
- Specified by:
publish
in class java.util.logging.Handler
attachTo
public void attachTo(java.util.logging.Logger logger,
java.util.logging.Level level)
flush
public void flush()
- Specified by:
flush
in class java.util.logging.Handler
close
public void close()
throws java.lang.SecurityException
- Specified by:
close
in class java.util.logging.Handler
- Throws:
java.lang.SecurityException
Copyright © 2012. All Rights Reserved.