diff options
| author | guest <guest@f059d3a0-6783-47b7-97ff-1fe0bbf25129> | 2008-09-24 20:38:37 +0000 |
|---|---|---|
| committer | guest <guest@f059d3a0-6783-47b7-97ff-1fe0bbf25129> | 2008-09-24 20:38:37 +0000 |
| commit | ab841adc06acd2a6ff161ea866579674ce5ff99e (patch) | |
| tree | b65d8a9028848e4d777bc6fbe777b7adda4b4fbc /src/YalpServer/OutputPlugin.java | |
| parent | f6825ebc115029fcf575033748e3372efb94c87d (diff) | |
added YalpServer InputPluginHandling (incomplete)
git-svn-id: http://manut.eu/svn/yalp/trunk@5 f059d3a0-6783-47b7-97ff-1fe0bbf25129
Diffstat (limited to 'src/YalpServer/OutputPlugin.java')
| -rw-r--r-- | src/YalpServer/OutputPlugin.java | 30 |
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; + } + +} |
