This is an automated email from the ASF dual-hosted git repository. gk pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/turbine-fulcrum-testcontainer.git
commit d1ab483620f35a0cdf4afae729a5b07f45aaf3f6 Author: Georg Kallidis <[email protected]> AuthorDate: Thu Aug 3 12:07:21 2023 +0200 Use non deprecated yaafi Log4j2Logger --- src/java/org/apache/fulcrum/testcontainer/YAAFIContainer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/fulcrum/testcontainer/YAAFIContainer.java b/src/java/org/apache/fulcrum/testcontainer/YAAFIContainer.java index 6523163..dcfa445 100644 --- a/src/java/org/apache/fulcrum/testcontainer/YAAFIContainer.java +++ b/src/java/org/apache/fulcrum/testcontainer/YAAFIContainer.java @@ -25,10 +25,10 @@ import org.apache.avalon.framework.component.Component; import org.apache.avalon.framework.component.ComponentException; import org.apache.avalon.framework.logger.AbstractLogEnabled; import org.apache.avalon.framework.logger.ConsoleLogger; -import org.apache.fulcrum.testcontainer.avalon.logger.Log4J2Logger; import org.apache.fulcrum.yaafi.framework.container.ServiceContainer; import org.apache.fulcrum.yaafi.framework.factory.ServiceContainerConfiguration; import org.apache.fulcrum.yaafi.framework.factory.ServiceContainerFactory; +import org.apache.fulcrum.yaafi.framework.logger.Log4j2Logger; import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.core.config.Configurator; @@ -61,7 +61,7 @@ public class YAAFIContainer extends AbstractLogEnabled implements Container //this.enableLogging( new ConsoleLogger( logLevel ) ); logger = LogManager.getLogger( "avalon" ); Configurator.setLevel( "avalon",logLevel ); - this.enableLogging( new Log4J2Logger( logger ) ); + this.enableLogging( new Log4j2Logger( logger ) ); this.config = new ServiceContainerConfiguration(); } @@ -91,7 +91,7 @@ public class YAAFIContainer extends AbstractLogEnabled implements Container this.logLevel = Level.INFO; } Configurator.setLevel( "avalon", this.logLevel ); - this.enableLogging( new Log4J2Logger( logger ) ); + this.enableLogging( new Log4j2Logger( logger ) ); this.config = new ServiceContainerConfiguration(); } @@ -112,7 +112,7 @@ public class YAAFIContainer extends AbstractLogEnabled implements Container this.config.setComponentConfigurationLocation( configFileName ); this.config.setComponentRolesLocation( roleFileName ); this.config.setParametersLocation( parametersFileName ); - this.config.setLogger( new Log4J2Logger( logger ) ); + this.config.setLogger( new Log4j2Logger( logger ) ); File configFile = new File(configFileName);
