-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
In logging guide, DEBUG should not be a valid log level #5789
Comments
It should be valid. JBoss LogManager retrofits the Apache style levels into JUL, and our code generally uses them. |
The issue is that the config properties guide links to the JDK Level which does not list the JBoss logging levels. They should be documented somewhere. |
@abelsromero the issue with Intellij and VSCode autocompletion should comes to the fact that they hardcoded the list of possible levels from Can you report this to them ? I don't know if we can do something at Quarkus side. |
Leaving plugins aside here. If I understand correctly the configuration is mapped here
java.util.logging.Level is being used, not org.jboss.logmanager.Level .
|
org.jboss.logmanager.Level extends java.util.logging.Level |
I think I understand it and I am not saying is wrong, what I am tryng to express is that for someone going through the docs is really confusing. If the configuration is mapped to So, these questions come to me:
|
@abelsromero please see PR #10672 where I improve the logging doc, it should clarify things a little. There is indeed two questions that worth investiguating:
Maybe @dmlloyd can answer those two questions ? You cannot open issues on JBoss Log Manager Github repo so we cannot ask for the |
The answer to this question is in the essay down below.
The short answer is:
That project still uses JIRA: https://issues.redhat.com/browse/LOGMGR Here's the deal with log levels - a little history and context. Way back at the dawn of time, when primitive humans were banging rocks together and the current version of the JBoss application server was 3.0, it used Log4j for logging. For various reasons, we ended up developing our own logging facade, at the time called "JBoss Commons Logging", which for this reason ended up following the Log4j standards for logging (including its levels: Right around the same time, Java 1.4 was released, containing its own logging API - one which used a completely different scheme for levels ( Over time, the JBoss application server project (later to be renamed WildFly) developed a project-wide standard for logging of messages which includes i18n considerations, all still based on the Apache de-facto standard. But, a rift was opening in the form of projects originating from Sun (now Oracle) which for a while had a tendency to use the But all of our standards (and now reams of documentation) were still based on the Apache standard, which at the time was still far more widely used than the JUL levels (and, AFAICT, still is). And this has not changed since this time. So JBoss Log Manager defines all logging, whenever possible, in terms of those standard levels. If you use the Log4j logging API, or Slf4j, or Apache Commons Logging, you're using those standard levels. The only time the standard levels aren't used is when a library uses JUL directly for whatever reason. As a result JBoss Log Manager has its own As far as the Quarkus documentation goes: it was, in my view, an error (due to overzeal) to document anything other than the Apache levels. Those are the levels we expect users to use and configure. The JUL levels are worthy, perhaps, of a footnote, for cases where older Sun frameworks are used (for example) and the user needs to know how to map those levels on to the Apache ones for the purposes of configuring log categories. But this is one case where what is in the JDK is not really the standard that is used by the majority of developers. Documenting them as if they were serves only to add confusion. |
That's far more than what I expected, thanks. |
Describe the bug
DEBUG is not a valid log level as shown in the logging guide example. A valid log level should be shown.
In addition, the logging guide should document valid log levels: ALL, CONFIG, FINE, FINER, FINEST, INFO, OFF, SEVERE, WARNING. These should be documented in the description for each log level-related property so they also show up in the all-config guide.
The text was updated successfully, but these errors were encountered: