You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following idiom is recommended in the logging guide:
if (log.isEnabled(Logger.Level.TRACE)) {
log.trace("called method with: " + name);
}
SLF4J supports a feature called parameterized logging which achieves the same result in a more elegant and succinct way on one line:
log.trace("called method with: {}", name);
As SLF4J binding to JBoss Logging is provided by Wildfly by default, I suggest that we recommend to use SLF4J in the logging guide instead to advocate clean code. Here is the corresponding adapter that proves that the two code snippets above are equivalent.
The text was updated successfully, but these errors were encountered:
The following idiom is recommended in the logging guide:
SLF4J supports a feature called parameterized logging which achieves the same result in a more elegant and succinct way on one line:
As SLF4J binding to JBoss Logging is provided by Wildfly by default, I suggest that we recommend to use SLF4J in the logging guide instead to advocate clean code. Here is the corresponding adapter that proves that the two code snippets above are equivalent.
The text was updated successfully, but these errors were encountered: