[DOCU-704] Change the version of the used log4j lib / Magnolia, logging and logstash Created: 18/Mar/16  Updated: 07/Jul/16  Resolved: 07/Jul/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Pain point Priority: Critical
Reporter: marcel koch Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Documentation update required:
Yes
Date of First Response:

 Description   

As you describing in the Docu Magnolia uses log4j for logging. As I can see after building the WAR file the exact version is log4j-1.2.17.
Furthermore, another dependency to slf4j is resolved - the exact versions are slf4j-api-1.7.7 and slf4j-log4j12-1.7.7.

Without looking into the code I'm wondering...

  1. why you have the dependency to slf4j when you only want to use log4j?
  2. if from your perspective it would be possible to change the the log4j version to something like 2.x?

I'm asking since we are doing some experiments regarding Magnolia logging directly to logstash without having the step in between of writing files to the disk.
Are there maybe any hints you could provide?

Thank you very much



 Comments   
Comment by Christoph Meier [ 07/Jul/16 ]

Hello mkoch

I'm very sorry to come to this ticket so late.

To use slf4j was an architectural decision, nothing which is related to Magnolia documentation. (I mention this, because you have created a JIRA ticket on DOCU which concerns about documentation.) Furthermore, accessing a logger via slf4j is kind of a standard with its advantages.

Concerning log4j 2.x, one of our developers recently was researching a bit concerning upgrading to 2.x - however, there are no concrete plans yet to do it.
If you want this happen (quicker) - i recommend using the Suggestion Box

Generated at Mon Feb 12 01:11:38 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.