summaryrefslogtreecommitdiff
path: root/src/YalpServer/OutputPlugin.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/YalpServer/OutputPlugin.java')
-rw-r--r--src/YalpServer/OutputPlugin.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/YalpServer/OutputPlugin.java b/src/YalpServer/OutputPlugin.java
new file mode 100644
index 0000000..605aa5f
--- /dev/null
+++ b/src/YalpServer/OutputPlugin.java
@@ -0,0 +1,30 @@
+package YalpServer;
+
+import org.apache.log4j.Logger;
+import org.apache.log4j.PropertyConfigurator;
+
+import YalpInterfaces.*;
+
+public class OutputPlugin {
+
+ private String log4jFile = "log4j_server.conf";
+
+ public OutputPluginInterface itf;
+ public PluginInfo info;
+
+ private static Logger logger =
+ Logger.getLogger("Yalp.Server.OutputPlugin");
+
+ public OutputPlugin() {
+ PropertyConfigurator.configureAndWatch(log4jFile);
+ logger.debug("OutputPlugin()");
+ }
+
+ public OutputPlugin(OutputPluginInterface _itf, PluginInfo _info) {
+ PropertyConfigurator.configureAndWatch(log4jFile);
+ logger.debug("OutputPlugin("+_info.name+")");
+ info = _info;
+ itf = _itf;
+ }
+
+}