summaryrefslogtreecommitdiff
path: root/src/YalpServer/InputPlugin.java
blob: 97c0d76d956583b54787fee2f7d049271bada760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
	}
}