You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sm...@apache.org on 2020/07/28 13:48:00 UTC

[directory-fortress-realm] branch master updated (2dd3b3f -> 36c16ce)

This is an automated email from the ASF dual-hosted git repository.

smckinney pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/directory-fortress-realm.git.


    from 2dd3b3f  [maven-release-plugin] prepare for next development iteration
     new 177759f  Log4j 2.13.3 upgrade
     new 36c16ce  log4j2 naming convention

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 conf/log4j.properties                        | 28 ----------------------------
 src/owasp/suppression.xml => conf/log4j2.xml | 27 ++++++++++++++++-----------
 impl/pom.xml                                 |  6 +++---
 pom.xml                                      | 10 +++++-----
 4 files changed, 24 insertions(+), 47 deletions(-)
 delete mode 100644 conf/log4j.properties
 copy src/owasp/suppression.xml => conf/log4j2.xml (61%)


[directory-fortress-realm] 02/02: log4j2 naming convention

Posted by sm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

smckinney pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-fortress-realm.git

commit 36c16ce7dcdc4662757a68a8ebcc5fd1d3b1e2df
Author: John Eipe <jo...@INLM-JohnE.local>
AuthorDate: Sat Jun 20 16:58:29 2020 +0530

    log4j2 naming convention
---
 conf/{log4j.xml => log4j2.xml} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)

diff --git a/conf/log4j.xml b/conf/log4j2.xml
similarity index 100%
rename from conf/log4j.xml
rename to conf/log4j2.xml


[directory-fortress-realm] 01/02: Log4j 2.13.3 upgrade

Posted by sm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

smckinney pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-fortress-realm.git

commit 177759fbb9ec78706b281b9d32db779606739f56
Author: John Eipe <jo...@INLM-JohnE.local>
AuthorDate: Sat Jun 20 16:29:16 2020 +0530

    Log4j 2.13.3 upgrade
---
 conf/log4j.properties | 28 ----------------------------
 conf/log4j.xml        | 35 +++++++++++++++++++++++++++++++++++
 impl/pom.xml          |  6 +++---
 pom.xml               | 10 +++++-----
 4 files changed, 43 insertions(+), 36 deletions(-)

diff --git a/conf/log4j.properties b/conf/log4j.properties
deleted file mode 100644
index 5e707fc..0000000
--- a/conf/log4j.properties
+++ /dev/null
@@ -1,28 +0,0 @@
-#
-#   Licensed to the Apache Software Foundation (ASF) under one
-#   or more contributor license agreements.  See the NOTICE file
-#   distributed with this work for additional information
-#   regarding copyright ownership.  The ASF licenses this file
-#   to you under the Apache License, Version 2.0 (the
-#   "License"); you may not use this file except in compliance
-#   with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-#   Unless required by applicable law or agreed to in writing,
-#   software distributed under the License is distributed on an
-#   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#   KIND, either express or implied.  See the License for the
-#   specific language governing permissions and limitations
-#   under the License.
-#
-
-log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.Stdout.layout.conversionPattern=%-5p - %d{dd MMM yyyy HH:mm:ss,SSS} - %-26.26c{1} - %m\n
-
-#log4j.rootLogger=DEBUG,Stdout
-log4j.rootLogger=WARN,Stdout
-log4j.logger.org.openldap=INFO
-log4j.logger.org.apache.directory.fortress.core=INFO
-log4j.logger.org.apache.directory.fortress.realm=INFO
\ No newline at end of file
diff --git a/conf/log4j.xml b/conf/log4j.xml
new file mode 100644
index 0000000..63296ca
--- /dev/null
+++ b/conf/log4j.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ *   Licensed to the Apache Software Foundation (ASF) under one
+ *   or more contributor license agreements.  See the NOTICE file
+ *   distributed with this work for additional information
+ *   regarding copyright ownership.  The ASF licenses this file
+ *   to you under the Apache License, Version 2.0 (the
+ *   "License"); you may not use this file except in compliance
+ *   with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing,
+ *   software distributed under the License is distributed on an
+ *   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *   KIND, either express or implied.  See the License for the
+ *   specific language governing permissions and limitations
+ *   under the License.
+ *
+ -->
+<Configuration>
+    <Appenders>
+        <Console name="console" target="SYSTEM_OUT">
+            <PatternLayout pattern="%-5p - %d{dd MMM yyyy HH:mm:ss,SSS} - %-26.26c{1} - %m%n"/>
+        </Console>
+    </Appenders>
+    <Loggers>
+        <Logger name="org.apache.directory.fortress.core" level="info"/>
+        <Logger name="org.apache.directory.fortress.realm" level="info" />
+        <Logger name="org.openldap" level="info" />
+        <Root level="warn">
+            <AppenderRef ref="console"/>
+        </Root>
+    </Loggers>
+</Configuration>
\ No newline at end of file
diff --git a/impl/pom.xml b/impl/pom.xml
index 2e37b1d..c7c420e 100644
--- a/impl/pom.xml
+++ b/impl/pom.xml
@@ -53,9 +53,9 @@
     </dependency>
 
     <dependency>
-      <groupId>org.slf4j</groupId>
-      <artifactId>slf4j-log4j12</artifactId>
-      <version>${slf4j.log4j12.version}</version>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-slf4j-impl</artifactId>
+      <version>${slf4j.impl.version}</version>
     </dependency>
 
   </dependencies>
diff --git a/pom.xml b/pom.xml
index e52e42b..54689bb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -100,8 +100,8 @@
     <findbugs.annotation.version>1.0.0</findbugs.annotation.version>
     <junit-addons.version>0.1</junit-addons.version>
     <skin.version>1.0.2</skin.version>
-    <slf4j.api.version>1.7.21</slf4j.api.version>
-    <slf4j.log4j12.version>1.7.21</slf4j.log4j12.version>
+    <slf4j.api.version>1.7.29</slf4j.api.version>
+    <slf4j.impl.version>2.13.3</slf4j.impl.version>
     <tomcat.catalina.version>9.0.29</tomcat.catalina.version>
     <findbugs.annotations.version>1.0.0</findbugs.annotations.version>
   </properties>
@@ -440,10 +440,10 @@
 
     <!-- logging implementation used for unit tests -->
     <dependency>
-      <groupId>org.slf4j</groupId>
-      <artifactId>slf4j-log4j12</artifactId>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-slf4j-impl</artifactId>
       <scope>test</scope>
-      <version>${slf4j.log4j12.version}</version>
+      <version>${slf4j.impl.version}</version>
     </dependency>
 
     <dependency>