Class MessageParser

    • Field Detail

      • MAX_ARG_COUNT

        public static final int MAX_ARG_COUNT
        The maximum allowed index (this should correspond to the MAX_ALLOWED_WIDTH in FormatOptions because at times it is ambiguous as to which is being parsed).
        See Also:
        Constant Field Values
    • Constructor Detail

      • MessageParser

        public MessageParser()
    • Method Detail

      • unescape

        public abstract void unescape​(StringBuilder out,
                                      String message,
                                      int start,
                                      int end)
        Appends the unescaped literal representation of the given message string (assumed to be escaped according to this parser's escaping rules). This method is designed to be invoked from a callback method in a MessageBuilder instance.
        Parameters:
        out - the destination into which to append characters
        message - the escaped log message
        start - the start index (inclusive) in the log message
        end - the end index (exclusive) in the log message