public class LogProxy extends LogRecordsSource<LogRecord>
| Modifier and Type | Class and Description |
|---|---|
protected class |
LogProxy.FilterLog
Filter for log records.
|
LogRecordsSource.Filter<T>, LogRecordsSource.RegexpFilter<T>| Modifier and Type | Field and Description |
|---|---|
protected Handler |
handler
Log handler.
|
protected static String[] |
levelNames
Names of log levels.
|
protected static Level[] |
levels
Array of all standard log levels.
|
protected static Map<Level,Integer> |
levelToIndex
Mapping between log level identifiers and their indexes in
levelNames
array. |
protected static int[] |
levelVals
Values of log level constants, indexes correspond to
levels array. |
filters, listeners, queue| Constructor and Description |
|---|
LogProxy(Logger log)
Creates a new instance of LogProxy
|
| Modifier and Type | Method and Description |
|---|---|
protected LogRecord |
getLogRecParam(LogRecord lr) |
org.openide.nodes.Sheet.Set |
getPropSet()
Returns property sheet associated with node representing this source.
|
void |
setRegexpFilterPatter(Pattern pattern)
Sets new pattern for regexp filter.
|
protected LogRecord |
toLogRecord(LogRecord t)
Pass the log record to the ancestor (LogRecordSource).
|
addFilter, addLogRecordListener, addMessage, clear, filter, getFilteredData, notifyLogRecordsListeners, notifySetNewData, notifySetNewData, removeFilter, removeLogRecordListener, replaceFilterprotected static String[] levelNames
protected static int[] levelVals
levels array.protected static Level[] levels
protected static Map<Level,Integer> levelToIndex
levelNames
array.protected Handler handler
public LogProxy(Logger log)
log - Logger to be adapted by this LogProxy.public void setRegexpFilterPatter(Pattern pattern)
setRegexpFilterPatter in class LogRecordsSource<LogRecord>public org.openide.nodes.Sheet.Set getPropSet()
LogRecordsSourcegetPropSet in class LogRecordsSource<LogRecord>protected LogRecord toLogRecord(LogRecord t)
toLogRecord in class LogRecordsSource<LogRecord>protected LogRecord getLogRecParam(LogRecord lr)
getLogRecParam in class LogRecordsSource<LogRecord>Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.