com.fastchar.slf4j.FastSlf4jWeb Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastchar-slf4j Show documentation
Show all versions of fastchar-slf4j Show documentation
FastChar-SLF4J is a FastChar plugin.
The newest version!
package com.fastchar.slf4j;
import com.fastchar.core.FastEngine;
import com.fastchar.interfaces.IFastWeb;
import com.fastchar.slf4j.core.FastExceptionProvider;
import com.fastchar.slf4j.provider.FastLog4jProvider;
public class FastSlf4jWeb implements IFastWeb {
@Override
public void onInit(FastEngine engine) throws Exception {
engine.getOverrides().add(FastLog4jProvider.class);
engine.getOverrides().add(FastExceptionProvider.class);
engine.getObservable().addObserver(FastLog4jProvider.class);
}
@Override
public void onFinish(FastEngine engine) throws Exception {
engine.getConfig(FastLog4j2Config.class).initLog4jConfig();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy