/** * Log an object with level {@link LogLevel#DEBUG}. * * @param object the object to log * @see Builder#addObjectFormatter(Class, ObjectFormatter) * @since 1.1.0 */ public void d(Object object) { println(LogLevel.DEBUG, object); }
/** * Log an object with level {@link LogLevel#INFO}. * * @param object the object to log * @see Builder#addObjectFormatter(Class, ObjectFormatter) * @since 1.1.0 */ public void i(Object object) { println(LogLevel.INFO, object); }
/** * Log an object with level {@link LogLevel#WARN}. * * @param object the object to log * @see Builder#addObjectFormatter(Class, ObjectFormatter) * @since 1.1.0 */ public void w(Object object) { println(LogLevel.WARN, object); }
/** * Log a message with level {@link LogLevel#ERROR}. * * @param msg the message to log */ public void e(String msg) { println(LogLevel.ERROR, msg); }
/** * Log a message and a throwable with specific log level. * * @param logLevel the specific log level * @param msg the message to log * @param tr the throwable to be log * @since 1.4.0 */ public void log(int logLevel, String msg, Throwable tr) { println(logLevel, msg, tr); }
/** * Log a message with level {@link LogLevel#DEBUG}. * * @param format the format of the message to log, null if just need to concat arguments * @param args the arguments of the message to log */ public void d(String format, Object... args) { println(LogLevel.DEBUG, format, args); }
/** * Log a message with level {@link LogLevel#INFO}. * * @param format the format of the message to log, null if just need to concat arguments * @param args the arguments of the message to log */ public void i(String format, Object... args) { println(LogLevel.INFO, format, args); }
/** * Log a message with level {@link LogLevel#WARN}. * * @param format the format of the message to log, null if just need to concat arguments * @param args the arguments of the message to log */ public void w(String format, Object... args) { println(LogLevel.WARN, format, args); }
/** * Log a message and a throwable with level {@link LogLevel#ERROR}. * * @param msg the message to log * @param tr the throwable to be log */ public void e(String msg, Throwable tr) { println(LogLevel.ERROR, msg, tr); }
/** * Log a message with specific log level. * * @param logLevel the specific log level * @param msg the message to log * @since 1.4.0 */ public void log(int logLevel, String msg) { println(logLevel, msg); }
/** * Log a message with level {@link LogLevel#VERBOSE}. * * @param msg the message to log */ public void v(String msg) { println(LogLevel.VERBOSE, msg); }
/** * Log a message and a throwable with level {@link LogLevel#VERBOSE}. * * @param msg the message to log * @param tr the throwable to be log */ public void v(String msg, Throwable tr) { println(LogLevel.VERBOSE, msg, tr); }
/** * Log a message and a throwable with level {@link LogLevel#DEBUG}. * * @param msg the message to log * @param tr the throwable to be log */ public void d(String msg, Throwable tr) { println(LogLevel.DEBUG, msg, tr); }
/** * Log an array with level {@link LogLevel#INFO}. * * @param array the array to log */ public void i(Object[] array) { println(LogLevel.INFO, array); }
/** * Log a message with level {@link LogLevel#INFO}. * * @param msg the message to log */ public void i(String msg) { println(LogLevel.INFO, msg); }
/** * Log an array with level {@link LogLevel#ERROR}. * * @param array the array to log */ public void e(Object[] array) { println(LogLevel.ERROR, array); }
/** * 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 void v(String format, Object... args) { println(LogLevel.VERBOSE, format, args); }
/** * Log a message with level {@link LogLevel#DEBUG}. * * @param msg the message to log */ public void d(String msg) { println(LogLevel.DEBUG, msg); }
/** * Log an array with specific log level. * * @param logLevel the specific log level * @param array the array to log * @since 1.4.0 */ public void log(int logLevel, Object[] array) { println(logLevel, array); }
/** * Log a message with specific log level. * * @param logLevel the specific log level * @param format the format of the message to log, null if just need to concat arguments * @param args the arguments of the message to log * @since 1.4.0 */ public void log(int logLevel, String format, Object... args) { println(logLevel, format, args); }