blob: 605aa5fa990887beebb85cd134e149f3e27f2d7f (
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
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;
}
}
|