Class LoggerUtils


  • public final class LoggerUtils
    extends Object
    Utilities for logging.
    • Method Detail

      • initLogger

        public static void initLogger()
        switch java.util.logging handler to slf4j.
      • quote

        public static StringBuilder quote​(StringBuilder buffer,
                                          String str)
        quote control code, backslash and doublequote.
        Parameters:
        buffer - result buffer.
        str - raw string.
        Returns:
        same as buffer.
      • quote

        public static String quote​(String str)
        quote control code, backslash and doublequote.
        Parameters:
        str - raw string.
        Returns:
        quoted string.
      • quote

        public static String[] quote​(String[] strs)
        quote control code, backslash and doublequote for each strings.
        Parameters:
        strs - raw strings.
        Returns:
        quoted strings.