-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Drops CONFIG and FINER log levels of java.util.logging #4663
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'd rather go with the second part of the issue than the first unless I misunderstood it. The fact that you don't get Having said that, if you write |
The config v abstraction makes sense to me. Less control over your logging library is fine, but I don't think dropping logs is. How about merging |
On a more closer look (thanks @wilkinsona), As for allowing logging library specific log level in the abstraction we decided not to do that for the reason I mentioned (using the infrastructure for configuration purposes). |
I'll try to spin up an example sometime in Jan when my projects calm down a bit. I might be wrong 😄 |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Spring boot appears to drop log statements logged with a
CONFIG
orFINER
level using java.util.logging. I might be reading the source wrong here, and I'm unsure how to confirm this because it also doesn't let you log lower thanINFO
, as I understand it (I have been able to confirm this be addinglog.levels.ROOT=DEBUG
to myapplication.properties
and not seeing my logs with a level ofFINE
/FINER
/FINEST
).Here's where I think the problem is:
spring-boot/spring-boot/src/main/java/org/springframework/boot/logging/java/JavaLoggingSystem.java
Lines 51 to 57 in 0088300
As an aside, wouldn't it be good if log levels were respected across logging libraries? That way you could still configure all libraries to use a certain level, but you could configure your specific library to behave the way you expect, given the logging library it's using. By defining your own levels that don't at least translate 1-1 with the library that has the most logging levels (which appears to be java.util.logging, but might be something else), you necessarily lose precision, and probably get more/less logging than you expected when using that library. This is a separate issue than the above two paragraphs.
The text was updated successfully, but these errors were encountered: