use of com.navercorp.pinpoint.profiler.logging.Log4j2Binder in project pinpoint by naver.
the class AccessorInjectionTest method getTestClassLoader.
private TestClassLoader getTestClassLoader() {
LoggerContext context = LogManager.getContext();
PLoggerFactory.initialize(new Log4j2Binder(context));
DefaultProfilerConfig profilerConfig = new DefaultProfilerConfig();
MockApplicationContextFactory factory = new MockApplicationContextFactory();
this.applicationContext = factory.build(profilerConfig);
this.applicationContext.start();
TestClassLoader testClassLoader = new TestClassLoader(applicationContext);
testClassLoader.initialize();
return testClassLoader;
}
use of com.navercorp.pinpoint.profiler.logging.Log4j2Binder in project pinpoint by naver.
the class InvokeMethodInterceptorTest method before.
/**
* Before.
*/
@BeforeClass
public static void before() {
LoggerContext context = LogManager.getContext();
PLoggerFactory.initialize(new Log4j2Binder(context));
}
Aggregations