Class LogViewerConlet

All Implemented Interfaces:
Iterable<ComponentType>, Channel, ComponentType, Eligible, Manager

A conlet for displaying records from java.util.logging.

The class LogViewerHandler has to be registered as a handler in the logging configuration (e.g. with -Djava.util.logging.config.file=logging.properties and logging.properties:

org.jgrapes.webconlet.logviewer.LogViewerHandler.level=CONFIG

The handler implements a ring buffer for the last 100 LogRecords. When the conlet is displayed, it obtains the initially shown messages from the ring buffer. All subsequently published LogRecords are forwarded to the conlet. In order to limit the memory required in the browser, the conlet also retains only the 100 most recent messages.