|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.spi.logging.LogEntryCache
public class LogEntryCache
A LogListener that caches LogEntry objects for later retrieval.
The entries can be filtered with a list of LogEntryFilter instances.
A log entry is cached if it matches at least one of the registered filters.
If there is no filter registered entries are cached unconditionally.
| Constructor Summary | |
|---|---|
LogEntryCache()
Create a LogEntryCache with no associated filters |
|
LogEntryCache(LogEntryFilter filter)
Create a LogEntryCache with a single associated filter |
|
| Method Summary | |
|---|---|
void |
addFilter(LogEntryFilter filter)
Add a LogEntryFilter |
void |
clear()
Clear the list of cached entries. |
void |
clearFilters()
Clear the list of registered filters. |
java.util.List<org.osgi.service.log.LogEntry> |
getLog()
Get the list of cached entries. |
java.util.List<org.osgi.service.log.LogEntry> |
getLog(boolean clear)
Get the list of cached entries and optionally clears the list. |
void |
logged(org.osgi.service.log.LogEntry entry)
Listener method called for each LogEntry object created. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogEntryCache(LogEntryFilter filter)
public LogEntryCache()
| Method Detail |
|---|
public void addFilter(LogEntryFilter filter)
public void clear()
public void clearFilters()
public java.util.List<org.osgi.service.log.LogEntry> getLog()
public java.util.List<org.osgi.service.log.LogEntry> getLog(boolean clear)
public void logged(org.osgi.service.log.LogEntry entry)
logged in interface org.osgi.service.log.LogListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||