-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #427 from devonfw/bugfix/log4j-upgrade2
Updates log4j version
- Loading branch information
Showing
7 changed files
with
202 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...laywright-framework/src/main/java/com/capgemini/framework/logger/LoggerConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.capgemini.framework.logger; | ||
|
||
import org.apache.logging.log4j.core.LoggerContext; | ||
import org.apache.logging.log4j.core.config.ConfigurationSource; | ||
import org.apache.logging.log4j.core.config.xml.XmlConfiguration; | ||
|
||
public class LoggerConfiguration extends XmlConfiguration { | ||
public LoggerConfiguration(LoggerContext context, ConfigurationSource configSource) { | ||
super(context, configSource); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ht-framework/src/main/java/com/capgemini/framework/logger/LoggerConfigurationFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.capgemini.framework.logger; | ||
|
||
import org.apache.logging.log4j.core.LoggerContext; | ||
import org.apache.logging.log4j.core.config.Configuration; | ||
import org.apache.logging.log4j.core.config.ConfigurationFactory; | ||
import org.apache.logging.log4j.core.config.ConfigurationSource; | ||
import org.apache.logging.log4j.core.config.Order; | ||
import org.apache.logging.log4j.core.config.plugins.Plugin; | ||
|
||
/** | ||
* https://logging.apache.org/log4j/log4j-2.4/manual/customconfig.html Combining Configuration File with Programmatic | ||
* Configuration | ||
*/ | ||
@Plugin(name = "LoggerConfigurationFactory", category = "ConfigurationFactory") | ||
@Order(10) | ||
public class LoggerConfigurationFactory extends ConfigurationFactory { | ||
public static final String[] SUFFIXES = new String[]{".xml", "*"}; | ||
|
||
@Override | ||
public String[] getSupportedTypes() { | ||
return SUFFIXES; | ||
} | ||
|
||
@Override | ||
public Configuration getConfiguration(LoggerContext loggerContext, ConfigurationSource source) { | ||
return new LoggerConfiguration(loggerContext, source); | ||
} | ||
} |
28 changes: 0 additions & 28 deletions
28
...wright-framework/src/main/java/com/capgemini/framework/logger/LoggerEnvironmentLevel.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.