-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Logging in Launcher prevents use of a custom JUL LogManager #9848
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
Comments
I think I see what's happening here. We're trying to use JUL from our custom nested JAR |
I am running Spring Boot 2.0.0 and am getting a similar error when running an executable war. It looks like it is related to JMX using JUL
Here is the command I am running it with: |
@electricsam I don't want to re-open this one because the original issue was fixed. Can you open a new issue and provide a small sample that shows the problem please. |
Opened #12659 |
As suggested in #3815 (comment) I create new issue for it.
I want to use log4j-jul instead of SLF4J for JUL logging.
To enable it I need to pass -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager during application start up like described https://logging.apache.org/log4j/log4j-2.8/log4j-jul/
It needs to happen before first JUL logger is created.
When I created simple application
https://github.com/pwielgolaski/boot-with-jul
and start it like that
java -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager -jar target/boot-with-jul-0.0.1-SNAPSHOT.jar
I get errors
All points to https://github.com/spring-projects/spring-boot/blob/master/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/Handler.java#L74
Based on search https://github.com/search?l=&q=java.util.logging+path%3Aspring-boot-tools%2Fspring-boot-loader+repo%3Aspring-projects%2Fspring-boot&ref=advsearch&type=Code&utf8=%E2%9C%93
It is only place where JUL logger is used in loader, so removing this logging could make it work.
The text was updated successfully, but these errors were encountered: