garydgregory commented on code in PR #813:
URL: https://github.com/apache/logging-log4j2/pull/813#discussion_r841272266


##########
log4j-1.2-api/src/main/java/org/apache/log4j/legacy/core/CategoryUtil.java:
##########
@@ -69,6 +79,22 @@ public static LoggerContext getLoggerContext(final Logger 
logger) {
         return get(logger, asCore(logger)::getContext, null);
     }
 
+
+    private static Optional<LoggerConfig> getExactLoggerConfig(final Logger 
logger) {
+        return Optional.of(asCore(logger).get()).filter(lc -> 
logger.getName().equals(lc.getName()));
+    }
+
+    /**
+     * Gets the {@code LoggerConfig} corresponding to this logger or an empty
+     * optional if this logger does not have a {@code LoggerConfig}
+     * 
+     * @param logger the target logger,
+     * @return a logger config.
+     */
+    public static Optional<LoggerConfig> getLoggerConfig(final Logger logger) {

Review Comment:
   Please check that we only make public what we must.



-- 
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