Skip to content

Optimize JUL logging #2585

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

Closed
romainmoreau opened this issue Mar 2, 2015 · 3 comments
Closed

Optimize JUL logging #2585

romainmoreau opened this issue Mar 2, 2015 · 3 comments
Labels
type: enhancement A general enhancement

Comments

@romainmoreau
Copy link

As stated in http://www.slf4j.org/legacy.html#jul-to-slf4j, the jul-to-slf4j bridge has some performance issues with disabled logging statements.
Since the jul-to-slf4j bridge is activated by default in the spring-boot-starter-logging pom, install a LevelChangePropagator will enhance the performances when the logging system used by the application is JUL and when there are some dependencies using JUL.

@philwebb philwebb added this to the 1.3.0 milestone Mar 2, 2015
@philwebb philwebb added the type: enhancement A general enhancement label Mar 2, 2015
@farrault
Copy link

farrault commented May 6, 2015

In the current default setup, I don't think there is a big performance impact, as only INFO or higher JUL log events are sent to SLF4JBridgeHandler

I created a ticket #2923 to allow the configuration of JUL levels sent to SLF4JBridgeHandler

See also the discussion here http://stackoverflow.com/questions/25364913/spring-boot-set-logging-level-of-external-jar-which-is-using-java-util-logging/30085782#30085782

@philwebb philwebb modified the milestones: 1.4.0, 1.3.0.RC1 Jul 10, 2015
@philwebb
Copy link
Member

philwebb commented Jan 8, 2016

See #3924 which solved something similar for Logback. We should still handle other SLF4J implementations.

@philwebb philwebb modified the milestones: 1.4.0.RC1, 1.4.0, 1.4.0.M2 Jan 8, 2016
@philwebb philwebb modified the milestones: 1.4.0.M3, 1.4.0.M2 Apr 11, 2016
@philwebb philwebb added the for: team-attention An issue we'd like other members of the team to review label May 17, 2016
@philwebb philwebb modified the milestones: 1.4.0.RC1, 1.4.0.M3 May 17, 2016
@philwebb philwebb removed the for: team-attention An issue we'd like other members of the team to review label Jun 22, 2016
@wilkinsona
Copy link
Member

wilkinsona commented Mar 22, 2018

This is, I think, a duplicate of #2923. We also recently documented how to configure Log4j2 so that it handles all output from JUL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

4 participants