/** * Initialize log system, should be called only once. * * @param printers the printers, each log would be printed by all of the printers * @since 1.3.0 */ public static void init(Printer... printers) { init(new LogConfiguration.Builder().build(), printers); }
/** * Log a message with level {@link LogLevel#VERBOSE}. * * @param format the format of the message to log * @param args the arguments of the message to log */ public static void v(String format, Object... args) { assertInitialization(); sLogger.v(format, args); }
/** * Log a message and a throwable with level {@link LogLevel#INFO}. * * @param msg the message to log * @param tr the throwable to be log */ public static void i(String msg, Throwable tr) { assertInitialization(); sLogger.i(msg, tr); }
/** * Log an array with level {@link LogLevel#ERROR}. * * @param array the array to log */ public static void e(Object[] array) { assertInitialization(); sLogger.e(array); }
/** * Log a JSON string, with level {@link LogLevel#DEBUG} by default. * * @param json the JSON string to log */ public static void json(String json) { assertInitialization(); sLogger.json(json); }
/** * Log a XML string, with level {@link LogLevel#DEBUG} by default. * * @param xml the XML string to log */ public static void xml(String xml) { assertInitialization(); sLogger.xml(xml); }