Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] logback.xml in jar #221

Open
chuey619 opened this issue May 3, 2023 · 1 comment
Open

[BUG] logback.xml in jar #221

chuey619 opened this issue May 3, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@chuey619
Copy link

chuey619 commented May 3, 2023

It appears that in the published jar, the logback.xml configuration was bundled with the library which is causing warnings to appear for users of the library that have their own logback.xml in their project.

22:03:44,772 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath. 22:03:44,772 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/Volumes/GradleBuildRAMDisk/api/api/resources/main/logback.xml] 22:03:44,772 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/Users/abc/.gradle/caches/modules-2/files-2.1/it.skrape/skrapeit-browser-fetcher/1.1.5/428cea6d688faf0c7f59bc099be7edcb49d3b2a3/skrapeit-browser-fetcher-1.1.5.jar!/logback.xml]

@chuey619 chuey619 added the bug Something isn't working label May 3, 2023
@chriptus13
Copy link

chriptus13 commented Mar 11, 2024

I was testing this library in a spring boot application where I have a custom logback-spring.xml configuration and suddenly my logs are different 😅

Setting logging.config explicitly does the job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants