jvz commented on code in PR #1171:
URL: https://github.com/apache/logging-log4j2/pull/1171#discussion_r1059155588


##########
log4j-api/src/main/java/org/apache/logging/log4j/message/FlowMessageFactory.java:
##########
@@ -30,6 +40,25 @@ public interface FlowMessageFactory {
      */
     EntryMessage newEntryMessage(Message message);
 
+    /**
+     * Creates a new exit message based on a return value and a forma string.
+     *
+     * @param format a format string
+     * @param result the return value
+     * @return the new exit message
+     * @since 2.20
+     */
+    ExitMessage newExitMessage(String format, Object result);

Review Comment:
   That sounds reasonable. Sometimes, a default implementation could be to 
either return `null` or just `throw new UnsupportedOperationException()` with 
appropriate checks on the consuming end as appropriate.



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