Java 类org.springframework.boot.logging.java.JavaLoggingSystem 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:LoggingApplicationListenerTests.java   
@Before
public void init() throws SecurityException, IOException {
    LogManager.getLogManager().readConfiguration(
            JavaLoggingSystem.class.getResourceAsStream("logging.properties"));
    this.initializer.onApplicationEvent(
            new ApplicationStartedEvent(new SpringApplication(), NO_ARGS));
    new File("target/foo.log").delete();
    new File(tmpDir() + "/spring.log").delete();
}
项目:spring-boot-concourse    文件:LoggingApplicationListenerTests.java   
@Before
public void init() throws SecurityException, IOException {
    LogManager.getLogManager().readConfiguration(
            JavaLoggingSystem.class.getResourceAsStream("logging.properties"));
    this.initializer.onApplicationEvent(
            new ApplicationStartedEvent(new SpringApplication(), NO_ARGS));
    new File("target/foo.log").delete();
    new File(tmpDir() + "/spring.log").delete();
}
项目:contestparser    文件:LoggingApplicationListenerTests.java   
@Before
public void init() throws SecurityException, IOException {
    LogManager.getLogManager().readConfiguration(
            JavaLoggingSystem.class.getResourceAsStream("logging.properties"));
    this.initializer.onApplicationEvent(
            new ApplicationStartedEvent(new SpringApplication(), NO_ARGS));
    new File("target/foo.log").delete();
    new File(tmpDir() + "/spring.log").delete();
}