com.levigo.util.swing.infobar
Class QualifiedLoggingBridge

java.lang.Object
  extended by 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.


Constructor Summary
QualifiedLoggingBridge(MessageConsumer consumer)
           
 
Method Summary
 void error(QualifiedLogEvent event)
          Callback method which will be invoked in case of an error.
 void fatal(QualifiedLogEvent event)
          Callback method which will be invoked in case of a fatal event.
 Level getThreshold()
           
static QualifiedLoggingBridge install(LoggingConfiguration source, MessageConsumer sink)
           
 void setThreshold(Level threshold)
           
 void warn(QualifiedLogEvent event)
          Callback method which will be invoked in case of a warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QualifiedLoggingBridge

public QualifiedLoggingBridge(MessageConsumer consumer)
Method Detail

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)


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.