/** * Log an object with level {@link LogLevel#ERROR}. * * @param object the object to log * @see LogConfiguration.Builder#addObjectFormatter(Class, ObjectFormatter) * @since 1.1.0 */ public static void e(Object object) { assertInitialization(); sLogger.e(object); }
/** * Convenience of {@link #build()} and {@link Logger#e(Object[])}. * * @since 1.4.0 */ public void e(Object[] array) { build().e(array); }
/** * Log an array with level {@link LogLevel#ERROR}. * * @param array the array to log */ public static void e(Object[] array) { assertInitialization(); sLogger.e(array); }
/** * Convenience of {@link #build()} and {@link Logger#e(String, Throwable)}. */ public void e(String msg, Throwable tr) { build().e(msg, tr); }
/** * Log a message with level {@link LogLevel#ERROR}. * * @param format the format of the message to log * @param args the arguments of the message to log */ public static void e(String format, Object... args) { assertInitialization(); sLogger.e(format, args); }
/** * Convenience of {@link #build()} and {@link Logger#e(String, Object...)}. */ public void e(String format, Object... args) { build().e(format, args); }
/** * Convenience of {@link #build()} and {@link Logger#e(Object)}. * * @since 1.1.0 */ public void e(Object object) { build().e(object); }
/** * Convenience of {@link #build()} and {@link Logger#e(String)}. */ public void e(String msg) { build().e(msg); }
/** * Log a message with level {@link LogLevel#ERROR}. * * @param msg the message to log */ public static void e(String msg) { assertInitialization(); sLogger.e(msg); }
/** * 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 static void e(String msg, Throwable tr) { assertInitialization(); sLogger.e(msg, tr); }
/** * @deprecated compatible with {@link android.util.Log#e(String, String)} */ public static void e(String tag, String msg) { tag(tag).build().e(msg); }
/** * @deprecated compatible with {@link android.util.Log#e(String, String, Throwable)} */ public static void e(String tag, String msg, Throwable tr) { tag(tag).build().e(msg, tr); }
break; case LogLevel.ERROR: logger.e(MESSAGE); break;
assertLog(WARN, DEFAULT_TAG, MESSAGE); logsContainer.clear(); logger.e(MESSAGE); assertLog(ERROR, DEFAULT_TAG, MESSAGE); logger.i(MESSAGE); logger.w(MESSAGE); logger.e(MESSAGE); logger.log(7, MESSAGE); logger.log(8, MESSAGE); assertLog(WARN, DEFAULT_TAG, MESSAGE); logsContainer.clear(); logger.e(MESSAGE); assertLog(ERROR, DEFAULT_TAG, MESSAGE); logsContainer.clear();