Search in sources :

Example 1 with Slf4jLoggerBinder

use of com.navercorp.pinpoint.profiler.logging.Slf4jLoggerBinder in project pinpoint by naver.

the class JavassistClassTest method getTestClassLoader.

private TestClassLoader getTestClassLoader() {
    PLoggerFactory.initialize(new Slf4jLoggerBinder());
    DefaultProfilerConfig profilerConfig = new DefaultProfilerConfig();
    profilerConfig.setApplicationServerType(ServiceType.TEST_STAND_ALONE.getName());
    MockApplicationContext applicationContext = MockApplicationContext.of(profilerConfig);
    TestClassLoader testClassLoader = new TestClassLoader(applicationContext);
    testClassLoader.initialize();
    return testClassLoader;
}
Also used : TestClassLoader(com.navercorp.pinpoint.test.classloader.TestClassLoader) DefaultProfilerConfig(com.navercorp.pinpoint.bootstrap.config.DefaultProfilerConfig) Slf4jLoggerBinder(com.navercorp.pinpoint.profiler.logging.Slf4jLoggerBinder) MockApplicationContext(com.navercorp.pinpoint.test.MockApplicationContext)

Aggregations

DefaultProfilerConfig (com.navercorp.pinpoint.bootstrap.config.DefaultProfilerConfig)1 Slf4jLoggerBinder (com.navercorp.pinpoint.profiler.logging.Slf4jLoggerBinder)1 MockApplicationContext (com.navercorp.pinpoint.test.MockApplicationContext)1 TestClassLoader (com.navercorp.pinpoint.test.classloader.TestClassLoader)1