Java Code Examples for org.apache.logging.log4j.core.config.ConfigurationFactory#removeConfigurationFactory()

The following examples show how to use org.apache.logging.log4j.core.config.ConfigurationFactory#removeConfigurationFactory() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Log4j2EcsLayoutTest.java    From ecs-logging-java with Apache License 2.0 4 votes vote down vote up
@AfterAll
static void cleanupClass() {
    ConfigurationFactory.removeConfigurationFactory(configFactory);
}
 
Example 2
Source File: CsvLogEventLayoutTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void cleanupClass() {
    ConfigurationFactory.removeConfigurationFactory(cf);
}
 
Example 3
Source File: CategoryTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void cleanupClass() {
    ConfigurationFactory.removeConfigurationFactory(cf);
    appender.stop();
}
 
Example 4
Source File: LoggerTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void tearDownClass() {
    ConfigurationFactory.removeConfigurationFactory(configurationFactory);
}
 
Example 5
Source File: CategoryTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void cleanupClass() {
    ConfigurationFactory.removeConfigurationFactory(cf);
    appender.stop();
}
 
Example 6
Source File: LoggerTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void tearDownClass() {
    ConfigurationFactory.removeConfigurationFactory(configurationFactory);
}
 
Example 7
Source File: YamlLayoutTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void cleanupClass() {
    ConfigurationFactory.removeConfigurationFactory(cf);
    ThreadContext.clearAll();
}
 
Example 8
Source File: XmlLayoutTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void cleanupClass() {
    ConfigurationFactory.removeConfigurationFactory(cf);
}
 
Example 9
Source File: GelfLayoutTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void cleanupClass() {
    ConfigurationFactory.removeConfigurationFactory(configFactory);
}
 
Example 10
Source File: HtmlLayoutTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void cleanupClass() {
    ConfigurationFactory.removeConfigurationFactory(cf);
}
 
Example 11
Source File: SyslogLayoutTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void cleanupClass() {
    ConfigurationFactory.removeConfigurationFactory(cf);
}
 
Example 12
Source File: Rfc5424LayoutTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void cleanupClass() {
    ConfigurationFactory.removeConfigurationFactory(cf);
}
 
Example 13
Source File: PatternLayoutTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
public static void cleanupClass() {
    ConfigurationFactory.removeConfigurationFactory(cf);
}
 
Example 14
Source File: JsonLayoutTest.java    From logging-log4j2 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void cleanupClass() {
    ConfigurationFactory.removeConfigurationFactory(cf);
    ThreadContext.clearAll();
}