remkop commented on code in PR #821:
URL: https://github.com/apache/logging-log4j2/pull/821#discussion_r850772206
##########
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:
@ppkarwasz Thank you for the suggestion. Done.
--
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]