edu.bonn.xulu.plugin.appl
Class LoggerPlugin

java.lang.Object
  extended by LoggerFrame
      extended by edu.bonn.xulu.plugin.appl.LoggerPlugin
All Implemented Interfaces:
XuluPlugin

public class LoggerPlugin
extends LoggerFrame
implements XuluPlugin

Dieses Xulu-Plugin zeigt alle im LogManager registrierten Log4j-Logger an und bietet die Möglichkeit, deren Level zur Laufzeit veraendern. Dies gestattet z.B. ein Ein- und Ausschalten von Debug-Informationen.

Version:
1.0
Author:
Martin Schmitz (University of Bonn/Germany)

Field Summary
protected  XuluModellingPlatform appl
          Instanz der Xulu-Applikation innerhalb der das Plugin ausgefuehrt wird.
static String CONFIG_FILE_NAME
          Log4j-Konfigurationsdatei aus der die Logger gelesen werden.
protected  boolean started
          Flag speichert, ob das Plugin gestartet ist.
 
Constructor Summary
LoggerPlugin()
          Erzeugt eine neue Plugin-Instanz.
 
Method Summary
 void execute(XuluModellingPlatform appl)
          Fuehrt das Plugin aus, in dem die Logger neu aus der Konfigurationsdatei geladen werden.
 boolean isStarted()
          Prueft, ob das Plugin gestartet ist.
 void stop()
          Stoppt das Plugin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.bonn.xulu.appl.XuluPlugin
isVisible, setVisible
 

Field Detail

CONFIG_FILE_NAME

public static final String CONFIG_FILE_NAME
Log4j-Konfigurationsdatei aus der die Logger gelesen werden. <XuluPluginVz>\LoggerPlugin\log4j.cfg


appl

protected XuluModellingPlatform appl
Instanz der Xulu-Applikation innerhalb der das Plugin ausgefuehrt wird.


started

protected boolean started
Flag speichert, ob das Plugin gestartet ist.

Constructor Detail

LoggerPlugin

public LoggerPlugin()
Erzeugt eine neue Plugin-Instanz.

Method Detail

execute

public void execute(XuluModellingPlatform appl)
Fuehrt das Plugin aus, in dem die Logger neu aus der Konfigurationsdatei geladen werden.

Specified by:
execute in interface XuluPlugin
Parameters:
appl - Xulu-Instanz in der das Plugin ausgefuehrt wird
See Also:
XuluModellingPlatform.getPluginDirectory(), CONFIG_FILE_NAME

isStarted

public boolean isStarted()
Prueft, ob das Plugin gestartet ist.

Specified by:
isStarted in interface XuluPlugin

stop

public void stop()
Stoppt das Plugin.

Specified by:
stop in interface XuluPlugin
See Also:
LogManager#resetConfiguration(), LogManager#shutdown()