/** * Convenience of {@link #build()} and {@link Logger#log(int, Object[])}. * * @since 1.4.0 */ public void log(int logLevel, Object[] array) { build().log(logLevel, array); }
/** * Convenience of {@link #build()} and {@link Logger#log(int, String)}. * * @since 1.4.0 */ public void log(int logLevel, String msg) { build().log(logLevel, msg); }
/** * Log a message with specific log level. * * @param logLevel the specific log level * @param msg the message to log * @since 1.4.0 */ public static void log(int logLevel, String msg) { assertInitialization(); sLogger.log(logLevel, msg); }
/** * Convenience of {@link #build()} and {@link Logger#log(int, Object)}. * * @since 1.4.0 */ public void log(int logLevel, Object object) { build().log(logLevel, object); }
/** * Log an object with specific log level. * * @param logLevel the specific log level * @param object the object to log * @see LogConfiguration.Builder#addObjectFormatter(Class, ObjectFormatter) * @since 1.4.0 */ public static void log(int logLevel, Object object) { assertInitialization(); sLogger.log(logLevel, object); }
/** * Log a message with specific log level. * * @param logLevel the specific log level * @param format the format of the message to log * @param args the arguments of the message to log * @since 1.4.0 */ public static void log(int logLevel, String format, Object... args) { assertInitialization(); sLogger.log(logLevel, format, args); }
/** * Convenience of {@link #build()} and {@link Logger#log(int, String, Object...)}. * * @since 1.4.0 */ public void log(int logLevel, String format, Object... args) { build().log(logLevel, format, args); }
/** * Convenience of {@link #build()} and {@link Logger#log(int, String, Throwable)}. * * @since 1.4.0 */ public void log(int logLevel, String msg, Throwable tr) { build().log(logLevel, msg, tr); }
/** * Log an array with specific log level. * * @param logLevel the specific log level * @param array the array to log * @since 1.4.0 */ public static void log(int logLevel, Object[] array) { assertInitialization(); sLogger.log(logLevel, array); }
/** * 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 static void log(int logLevel, String msg, Throwable tr) { assertInitialization(); sLogger.log(logLevel, msg, tr); }
logger.log(-1, MESSAGE); logger.log(0, MESSAGE); logger.log(1, MESSAGE); logger.v(MESSAGE); logger.d(MESSAGE); logger.w(MESSAGE); logger.e(MESSAGE); logger.log(7, MESSAGE); logger.log(8, MESSAGE); logger.log(9, MESSAGE); AssertUtil.assertNoLog(logsContainer); logger.log(-1, MESSAGE); assertLog(-1, DEFAULT_TAG, MESSAGE); logsContainer.clear(); logger.log(0, MESSAGE); assertLog(0, DEFAULT_TAG, MESSAGE); logsContainer.clear(); logger.log(1, MESSAGE); assertLog(1, DEFAULT_TAG, MESSAGE); logsContainer.clear(); assertLog(ERROR, DEFAULT_TAG, MESSAGE); logsContainer.clear(); logger.log(7, MESSAGE); assertLog(7, DEFAULT_TAG, MESSAGE); logsContainer.clear(); logger.log(8, MESSAGE);