You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Christopher L. Shannon (Jira)" <ji...@apache.org> on 2022/09/29 22:00:00 UTC

[jira] [Comment Edited] (ARTEMIS-4020) switch to using SLF4J for logging API and use Log4j 2 for broker distribution

    [ https://issues.apache.org/jira/browse/ARTEMIS-4020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17611261#comment-17611261 ] 

Christopher L. Shannon edited comment on ARTEMIS-4020 at 9/29/22 9:59 PM:
--------------------------------------------------------------------------

The main thing we'd need to also do is switch out the impl and use log4j-slf4j2-impl as documented here: https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/index.html

The new binding jar should fix the previous issues.

Also tagging [~clebertsuconic]


was (Author: christopher.l.shannon):
The main thing we'd need to also do is switch out the impl and use log4j-slf4j2-impl as documented here: https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/index.html


> switch to using SLF4J for logging API and use Log4j 2 for broker distribution
> -----------------------------------------------------------------------------
>
>                 Key: ARTEMIS-4020
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4020
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>            Reporter: Robbie Gemmell
>            Priority: Major
>             Fix For: 2.27.0
>
>          Time Spent: 6h 40m
>  Remaining Estimate: 0h
>
> Switch to using [SLF4J|https://www.slf4j.org/] as the logging API for the code base, with end-uses supplying and configuring an SLF4J-supporting logging implementation of their choice based on their needs.
> For the client, applications will need to supply an SLF4J binding to a logging implementation of their choice to enable logging. An example of doing so using [Log4J 2|https://logging.apache.org/log4j/2.x/manual/index.html] is given in (/will be, once the release is out) the [client logging documentation|https://activemq.apache.org/components/artemis/documentation/latest/logging.html#logging-in-a-client-application].
> For the broker, the assembly distribution will include [Log4J 2|https://logging.apache.org/log4j/2.x/manual/index.html] as its logging implentation, with the "artemis create" CLI command used to create broker instances now creating a log4j2.properties configuration within the <broker-instance>/etc/ directory to configure Log4J. Details for upgrading an existing broker-instance is given in (/will be, once the release is out) the [version upgrade documentation|https://activemq.apache.org/components/artemis/documentation/latest/versions.html].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)