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/InputPlugin.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/InputPlugin.java')
| -rw-r--r-- | src/YalpServer/InputPlugin.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/YalpServer/InputPlugin.java b/src/YalpServer/InputPlugin.java new file mode 100644 index 0000000..97c0d76 --- /dev/null +++ b/src/YalpServer/InputPlugin.java @@ -0,0 +1,29 @@ +package YalpServer; + +import org.apache.log4j.Logger; +import org.apache.log4j.PropertyConfigurator; + +import YalpInterfaces.*; + +public class InputPlugin { + + private String log4jFile = "log4j_server.conf"; + + public InputPluginInterface itf; + public PluginInfo info; + + private static Logger logger = + Logger.getLogger("Yalp.Server.InputPlugin"); + + public InputPlugin() { + PropertyConfigurator.configureAndWatch(log4jFile); + logger.debug("InputPlugin()"); + } + + public InputPlugin(InputPluginInterface _itf, PluginInfo _info) { + PropertyConfigurator.configureAndWatch(log4jFile); + logger.debug("InputPlugin("+_info.name+")"); + info = _info; + itf = _itf; + } +} |
