ppkarwasz commented on code in PR #821:
URL: https://github.com/apache/logging-log4j2/pull/821#discussion_r850388680


##########
log4j-jul/src/main/java/org/apache/logging/log4j/jul/ApiLogger.java:
##########
@@ -91,7 +92,8 @@ public String getName() {
 
     @Override
     public void setLevel(final Level newLevel) throws SecurityException {
-        throw new UnsupportedOperationException("Cannot set level through 
log4j-api");
+        StatusLogger.getLogger().error("Cannot set JUL log level through 
log4j-api: " +
+                "ignoring call to Logger.setLevel(" + newLevel + ")");

Review Comment:
   I would suggest a parameterized message, instead of string joining.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to