org.weborganic.bastille.log.logback
Class LogbackInfo

java.lang.Object
  extended by org.weborganic.bastille.log.logback.LogbackInfo
All Implemented Interfaces:
LogInfo

public final class LogbackInfo
extends Object
implements LogInfo

A implementation of the log info interface for the Logback framework.

Since:
Bastille 0.8.5

Constructor Summary
LogbackInfo()
           
 
Method Summary
 LogLevel getRecentEventThreshold()
          Returns the threshold for the recent logs.
 void init()
          Sets up the recent events turbo filter.
 List<File> listLogDirectories()
          Returns the list of log directories by looking at all the FileAppender instances.
 List<? extends XMLWritable> listRecentEvents()
          Returns a list of the recent log entries as XMLWritable.
 void setRecentEventThreshold(LogLevel level)
          Set the threshold for the recent logs.
 boolean supportsListLogDirectories()
          Indicates whether the logging framework supports the listing of log directories.
 boolean supportsRecentEvents()
          Indicates whether the logging framework supports the recent log functionality.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogbackInfo

public LogbackInfo()
Method Detail

init

public void init()
Sets up the recent events turbo filter.

Specified by:
init in interface LogInfo

supportsListLogDirectories

public boolean supportsListLogDirectories()
Description copied from interface: LogInfo
Indicates whether the logging framework supports the listing of log directories.

Specified by:
supportsListLogDirectories in interface LogInfo
Returns:
always true.

listLogDirectories

public List<File> listLogDirectories()
Returns the list of log directories by looking at all the FileAppender instances.

Specified by:
listLogDirectories in interface LogInfo
Returns:
the list of log files generated by Logback

supportsRecentEvents

public boolean supportsRecentEvents()
Description copied from interface: LogInfo
Indicates whether the logging framework supports the recent log functionality.

Specified by:
supportsRecentEvents in interface LogInfo
Returns:
always true.

setRecentEventThreshold

public void setRecentEventThreshold(LogLevel level)
Description copied from interface: LogInfo
Set the threshold for the recent logs.

Specified by:
setRecentEventThreshold in interface LogInfo
Parameters:
level - The threshold for keeping recent log events including that level.

getRecentEventThreshold

public LogLevel getRecentEventThreshold()
Description copied from interface: LogInfo
Returns the threshold for the recent logs.

Specified by:
getRecentEventThreshold in interface LogInfo
Returns:
The threshold for keeping recent log events including that level.

listRecentEvents

public List<? extends XMLWritable> listRecentEvents()
Description copied from interface: LogInfo
Returns a list of the recent log entries as XMLWritable.

Implementations must return an empty list rather than null.

Specified by:
listRecentEvents in interface LogInfo
Returns:
Always a list (never null)