From ab841adc06acd2a6ff161ea866579674ce5ff99e Mon Sep 17 00:00:00 2001 From: guest Date: Wed, 24 Sep 2008 20:38:37 +0000 Subject: added YalpServer InputPluginHandling (incomplete) git-svn-id: http://manut.eu/svn/yalp/trunk@5 f059d3a0-6783-47b7-97ff-1fe0bbf25129 --- src/YalpServer/OutputPlugin.java | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/YalpServer/OutputPlugin.java (limited to 'src/YalpServer/OutputPlugin.java') 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; + } + +} -- cgit v1.2.3