initialize();
}
}
public synchronized static void initialize() {
final P6ModuleManager moduleManager = P6ModuleManager.getInstance();
if (null == moduleManager) {
// not initialized yet => can't proceed
return;
}
final P6SpyOptions opts = moduleManager.getOptions(P6SpyOptions.class);
logger = opts.getAppenderInstance();
if (logger != null) {
if (logger instanceof FileLogger) {
final String logfile = opts.getLogfile();
((FileLogger) logger).setLogfile(logfile);