Class AbstractLogEntry.Builder<R extends AbstractLogEntry,​T extends AbstractLogEntry.Builder<R,​?>>

    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • noPad

        public T noPad()
        Apply no padding on the output. This is the default.
        Returns:
        updated builder instance
      • rPad

        public T rPad​(int length)
        Apply right padding to fill the defined length. Padding uses spaces. If log entry length is bigger than padding length, log entry is returned as is
        Parameters:
        length - length to pad to
        Returns:
        updated builder instance
      • lPad

        public T lPad​(int length)
        Apply left padding to fill the defined length. Padding uses spaces. If log entry length is bigger than padding length, log entry is returned as is
        Parameters:
        length - length to pad to
        Returns:
        updated builder instance
      • sanitize

        public T sanitize​(boolean sanitize)
        Configure output sanitization. In case the sanitized output differs from original value, the output will be prefixed with an exclamation mark.
        Parameters:
        sanitize - whether to sanitize output (for log entries that are based on text from HTTP request).
        Returns:
        updated builder instance
      • maxLength

        public T maxLength​(int maxLength)
        Configure maximal length of the output written. Modified output will be prefixed with an exclamation mark.
        Parameters:
        maxLength - maximal length to write
        Returns:
        updated builder instance