com.levigo.util.swing.infobar
Class QualifiedLoggingBridge
java.lang.Object
com.levigo.util.swing.infobar.QualifiedLoggingBridge
- All Implemented Interfaces:
- QualifiedLogListener
public class QualifiedLoggingBridge
- extends Object
- implements QualifiedLogListener
A bridge from qualified logging to fancy messaging.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QualifiedLoggingBridge
public QualifiedLoggingBridge(MessageConsumer consumer)
install
public static QualifiedLoggingBridge install(LoggingConfiguration source,
MessageConsumer sink)
error
public void error(QualifiedLogEvent event)
- Description copied from interface:
QualifiedLogListener
- Callback method which will be invoked in case of an error. The given
QualifiedLogEvent
will not be null and contains the details of the
log event
- Specified by:
error
in interface QualifiedLogListener
- Parameters:
event
- the details of the log event as an QualifiedLogEvent
fatal
public void fatal(QualifiedLogEvent event)
- Description copied from interface:
QualifiedLogListener
- Callback method which will be invoked in case of a fatal event. The given
QualifiedLogEvent
will not be null and contains the details of the
log event
- Specified by:
fatal
in interface QualifiedLogListener
- Parameters:
event
- the details of the log event as an QualifiedLogEvent
warn
public void warn(QualifiedLogEvent event)
- Description copied from interface:
QualifiedLogListener
- Callback method which will be invoked in case of a warning. The given
QualifiedLogEvent
will not be null and contains the details of the
log event
- Specified by:
warn
in interface QualifiedLogListener
- Parameters:
event
- the details of the log event as an QualifiedLogEvent
getThreshold
public Level getThreshold()
setThreshold
public void setThreshold(Level threshold)