org.openqa.selenium.logging
Class LoggingHandler
java.lang.Object
java.util.logging.Handler
org.openqa.selenium.logging.LoggingHandler
public class LoggingHandler
- extends 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 List<LogEntry> getRecords()
- Returns:
- an unmodifiable list of LogEntry.
publish
public void publish(LogRecord logRecord)
- Specified by:
publish
in class Handler
attachTo
public void attachTo(Logger logger,
Level level)
flush
public void flush()
- Specified by:
flush
in class Handler
close
public void close()
throws SecurityException
- Specified by:
close
in class Handler
- Throws:
SecurityException
Copyright © 2012. All Rights Reserved.