public final class LoggerUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
initLogger()
switch java.util.logging handler to slf4j.
|
static String |
quote(String str)
quote control code, backslash and doublequote.
|
static String[] |
quote(String[] strs)
quote control code, backslash and doublequote for each strings.
|
static StringBuilder |
quote(StringBuilder buffer,
String str)
quote control code, backslash and doublequote.
|
public static void initLogger()
public static StringBuilder quote(StringBuilder buffer, String str)
buffer - result buffer.str - raw string.public static String quote(String str)
str - raw string.Copyright © 2017. All rights reserved.