You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/11/24 06:27:00 UTC

[jira] [Work logged] (LOG4J2-2453) Missing dependency to log4j-slf4j18-impl in log4j-bom

     [ https://issues.apache.org/jira/browse/LOG4J2-2453?focusedWorklogId=169102&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-169102 ]

ASF GitHub Bot logged work on LOG4J2-2453:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 24/Nov/18 06:26
            Start Date: 24/Nov/18 06:26
    Worklog Time Spent: 10m 
      Work Description: rgoers closed pull request #216: Fix for LOG4J2-2453: Added dependency to log4j-slf4j18-impl
URL: https://github.com/apache/logging-log4j2/pull/216
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/log4j-bom/pom.xml b/log4j-bom/pom.xml
index 3a89ec0e1b..cc4f4af4c5 100644
--- a/log4j-bom/pom.xml
+++ b/log4j-bom/pom.xml
@@ -126,6 +126,12 @@
         <artifactId>log4j-slf4j-impl</artifactId>
         <version>${project.version}</version>
       </dependency>
+      <!-- SLF4J 1.8.x Compatibility API -->
+      <dependency>
+        <groupId>org.apache.logging.log4j</groupId>
+        <artifactId>log4j-slf4j18-impl</artifactId>
+        <version>${project.version}</version>
+      </dependency>
       <!-- Web Application Support -->
       <dependency>
         <groupId>org.apache.logging.log4j</groupId>


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 169102)
            Time Spent: 10m
    Remaining Estimate: 0h

> Missing dependency to log4j-slf4j18-impl in log4j-bom
> -----------------------------------------------------
>
>                 Key: LOG4J2-2453
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2453
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: SLF4J Bridge
>    Affects Versions: 2.11.1
>            Reporter: Thorsten Heit
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> According to [https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/index.html] there are two SLF4J to Log4j adapters provided since release 2.11.1:
>  * log4j-slf4j-impl for SLF4J 1.7.x releases or older
>  * log4j-slf4j18-impl for SLF4J 1.8.x releases or newer
> When I use the following snippet in my (corporate parent) pom.xml
> {noformat}
> <dependencyManagement>
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.logging.log4j</groupId>
>       <artifactId>log4j-bom</artifactId>
>       <version>2.11.1</version>
>       <scope>import</scope>
>       <type>pom</type>
>     </dependency>
>   </dependencies>
> </dependencyManagement>
> {noformat}
> I can omit the version numbers in my pom.xml for the Log4J components I'm using:
> {noformat}
> (...)
> <dependency>
>   <groupId>org.apache.logging.log4j</groupId>
>   <artifactId>log4j-core</artifactId>
> </dependency>
> <dependency>
>   <groupId>org.apache.logging.log4j</groupId>
>   <artifactId>log4j-slf4j-impl</artifactId>
> </dependency>
> <dependency>
>   <groupId>org.apache.logging.log4j</groupId>
>   <artifactId>log4j-jul</artifactId>
> </dependency>
> (...)
> {noformat}
> This only works for the artifact {{log4j-slf4j-impl}}, but NOT for {{log4j-slf4j18-impl}} which isn't contained / managed in the BOM.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)