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

Adrian Pasternak commented on QPID-8660:
----------------------------------------

I created a PR that could possibly fix the issue: 
[https://github.com/apache/qpid-broker-j/pull/226]

I restored the default Logback initialization process by returning 
{{ExecutionStatus.NEUTRAL}} from {{{}NoopConfigurator#configure(){}}}. However, 
it appears that with this approach, the {{NoopConfigurator}} could be entirely 
removed.

Instead, to disable the default Logback logging configuration that happened in 
BasicConfigurator I added an empty logback.xml configuration file.

 
This modification effectively disables the default logging behavior while 
enabling the customization of Logback logging configurations in applications 
using qpid-broker as a dependency.

 

Given my limited familiarity with the codebase, I am uncertain if this is the 
optimal solution.

> Logback logging disabled by inclusion of qpid-broker as a dependency
> --------------------------------------------------------------------
>
>                 Key: QPID-8660
>                 URL: https://issues.apache.org/jira/browse/QPID-8660
>             Project: Qpid
>          Issue Type: Bug
>          Components: Broker-J
>    Affects Versions: qpid-java-broker-9.1.0
>            Reporter: Adrian Pasternak
>            Priority: Minor
>
> Adding qpid-broker as a project dependency:
> {code:java}
> <dependency>
>     <groupId>org.apache.qpid</groupId>
>     <artifactId>qpid-broker</artifactId>
>     <version>9.1.0</version>
> </dependency> {code}
> Disables all logback logging in the application.
>  
> This behavior is caused by a change: 
> [https://github.com/apache/qpid-broker-j/blame/9.1.0/broker-plugins/logging-logback/src/main/java/org/apache/qpid/server/logging/logback/NoopConfigurator.java#L33]
>  
> Mailing list discussion: 
> [https://lists.apache.org/thread/ms9ddg0kstkdh3yq2ytxtdnlq2dyhps1]  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to