|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.nb.pogamut.base.logging.LogRecordsSource<LogRecord>
cz.cuni.amis.nb.pogamut.base.logging.LogProxy
public class LogProxy
Adapter of standard Java logger to LogRecordsSource object. This class also provides property sheet for GUI.
| Nested Class Summary | |
|---|---|
protected class |
LogProxy.FilterLog
Filter for log records. |
| Nested classes/interfaces inherited from class cz.cuni.amis.nb.pogamut.base.logging.LogRecordsSource |
|---|
LogRecordsSource.Filter<T>, LogRecordsSource.RegexpFilter<T> |
| Field Summary | |
|---|---|
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. |
| Fields inherited from class cz.cuni.amis.nb.pogamut.base.logging.LogRecordsSource |
|---|
filters, listeners, queue |
| Constructor Summary | |
|---|---|
LogProxy(Logger log)
Creates a new instance of LogProxy |
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class cz.cuni.amis.nb.pogamut.base.logging.LogRecordsSource |
|---|
addFilter, addLogRecordListener, addMessage, clear, filter, getFilteredData, notifyLogRecordsListeners, notifySetNewData, notifySetNewData, removeFilter, removeLogRecordListener, replaceFilter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static String[] levelNames
protected static int[] levelVals
levels array.
protected static Level[] levels
protected static Map<Level,Integer> levelToIndex
levelNames
array.
protected Handler handler
| Constructor Detail |
|---|
public LogProxy(Logger log)
log - Logger to be adapted by this LogProxy.| Method Detail |
|---|
public void setRegexpFilterPatter(Pattern pattern)
setRegexpFilterPatter in class LogRecordsSource<LogRecord>public org.openide.nodes.Sheet.Set getPropSet()
LogRecordsSource
getPropSet in class LogRecordsSource<LogRecord>protected LogRecord toLogRecord(LogRecord t)
toLogRecord in class LogRecordsSource<LogRecord>protected LogRecord getLogRecParam(LogRecord lr)
getLogRecParam in class LogRecordsSource<LogRecord>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||