de.infinityloop.util.log
Class LoggingBridge

java.lang.Object
  extended by de.infinityloop.util.log.LogListenerImpl
      extended by de.infinityloop.util.log.LoggingBridge
All Implemented Interfaces:
LogListener

public class LoggingBridge
extends LogListenerImpl

This class acts as a logging system bridge bridge (yeah, twice! :-)), i.e. it is a LogSubscriber as far as the internal iloop logging architecture is concerned, and passes events on to the Log Bridge system, which again is a logging bridge for various gernerally available logging system implementations. Ususally, this class is attached to two LogPublishers, the StaticLogger and the application's logger.

Author:
Christian Roth

Field Summary
 
Fields inherited from class de.infinityloop.util.log.LogListenerImpl
name, subscribedToList
 
Method Summary
 java.lang.String getFile()
          Returns the log file path currently in use if it can be determined, null otherwise.
 int getLevel()
          Deprecated.  
static LoggingBridge getLoggingBridge()
          Retrieve the logging bridge instance singleton.
 boolean receiveLogEvent(LogEvent le)
          Called to request handling a LogEvent generated by one of the LogPublishers we are subscribed to.
 void reconfigure(java.lang.String logfile, java.lang.String filterSpec)
          Re-Set the log destination file and the log filter spec
 void setLevel(int level)
          Deprecated.  
 
Methods inherited from class de.infinityloop.util.log.LogListenerImpl
addedTo, getFilter, getFilterspec, removedFrom, setFilter, setName, toString, unregisterFromAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getFile

public final java.lang.String getFile()
Returns the log file path currently in use if it can be determined, null otherwise.

Returns:

getLoggingBridge

public static LoggingBridge getLoggingBridge()
Retrieve the logging bridge instance singleton.

Returns:

reconfigure

public void reconfigure(java.lang.String logfile,
                        java.lang.String filterSpec)
Re-Set the log destination file and the log filter spec

Parameters:
logfile - the new log file path
filterSpec - the new log filter spec

receiveLogEvent

public boolean receiveLogEvent(LogEvent le)
Called to request handling a LogEvent generated by one of the LogPublishers we are subscribed to. This is then passed on to the SLF4J system, depending on the event's properties.

Specified by:
receiveLogEvent in interface LogListener
Overrides:
receiveLogEvent in class LogListenerImpl
Parameters:
le - the logging event
Returns:
always false, i.e. we never handle a LogEvent definitely.
See Also:
LogListener.receiveLogEvent(de.infinityloop.util.log.LogEvent)

getLevel

@Deprecated
public int getLevel()
Deprecated. 

Return the filter's approximate level

Returns:

setLevel

@Deprecated
public void setLevel(int level)
Deprecated. 

Activate a solely level-based filter

Parameters:
level -