public QuasarWebAppClassLoader(ClassLoader parent) {
super(parent);
}
private QuasarInstrumentor newInstrumentor() {
QuasarInstrumentor inst = new QuasarInstrumentor(this); // must be called *after* construction has completed
inst.setLog(new Log() {
@Override
public void log(LogLevel level, String msg, Object... args) {
System.out.println("[quasar] " + level + ": " + String.format(msg, args));
}
@Override
public void error(String msg, Exception exc) {
System.out.println("[quasar] ERROR: " + msg);
exc.printStackTrace(System.out);
}
});
inst.setVerbose(false);
inst.setDebug(false);
return inst;
}