mvanhorn commented on code in PR #4456:
URL: https://github.com/apache/logging-log4j2/pull/4456#discussion_r4469305157


##########
log4j-core/src/main/java/org/apache/logging/log4j/core/appender/TlsSyslogFrame.java:
##########
@@ -30,8 +31,18 @@ public class TlsSyslogFrame {
     private final int byteLength;
 
     public TlsSyslogFrame(final String message) {
+        this(message, StandardCharsets.UTF_8);
+    }
+
+    /**
+     * Creates a frame whose length counts the message bytes in the supplied 
charset.
+     *
+     * @param message the message to frame
+     * @param charset the charset used to encode the message

Review Comment:
   Added in a5363f6.
   
   <!-- r:d15c14aa2b8d.ee77a7962f87 -->



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