chia7712 commented on code in PR #16601:
URL: https://github.com/apache/kafka/pull/16601#discussion_r1682574586
##########
clients/src/test/java/org/apache/kafka/common/utils/LogCaptureAppender.java:
##########
@@ -80,6 +86,17 @@ public static LogCaptureAppender createAndRegister(final
Class<?> clazz) {
return logCaptureAppender;
}
+ public void setClassLoggerToInfo(final Class<?> clazz) {
Review Comment:
Could we add new method `setClassLogger` to replace those
`setClassLoggerToXXX`?
```java
public void setClassLogger(final Class<?> clazz, Level level) {
logLevelChanges.add(new
LogLevelChange(Logger.getLogger(clazz).getLevel(), clazz));
Logger.getLogger(clazz).setLevel(level);
}
```
That is more simple and not verbose to me
--
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]