Search in sources :

Example 1 with SLF4JLogFactory

use of org.apache.commons.logging.impl.SLF4JLogFactory in project spring-boot by spring-projects.

the class LogbackLoggingSystemTests method setup.

@Before
public void setup() {
    this.loggingSystem.cleanUp();
    this.logger = new SLF4JLogFactory().getInstance(getClass().getName());
    this.environment = new MockEnvironment();
    this.initializationContext = new LoggingInitializationContext(this.environment);
}
Also used : LoggingInitializationContext(org.springframework.boot.logging.LoggingInitializationContext) MockEnvironment(org.springframework.mock.env.MockEnvironment) SLF4JLogFactory(org.apache.commons.logging.impl.SLF4JLogFactory) Before(org.junit.Before)

Aggregations

SLF4JLogFactory (org.apache.commons.logging.impl.SLF4JLogFactory)1 Before (org.junit.Before)1 LoggingInitializationContext (org.springframework.boot.logging.LoggingInitializationContext)1 MockEnvironment (org.springframework.mock.env.MockEnvironment)1