Android/Simplebudget/app/src/main/java/com/simplebudget/helper/Logger.java
public static void error(String tag, boolean debug, String msg, Throwable t) {
        if (!debug || BuildConfig.DEBUG_LOG) {
            Log.e(tag, msg, t);
        }

        if (BuildConfig.CRASHLYTICS_ACTIVATED) {
            if (t != null) {
                FirebaseCrashlytics.getInstance().recordException(new Throwable(msg, t));
            } else {
                FirebaseCrashlytics.getInstance().log("E/" + tag + ": " + msg);
            }
        }
    }
/**
     * Error log with debug, tag, message and throwable.
     *
     * @param tag   Tag to show.
     * @param debug Is this a debug log (= for the lib) or a log that should be displayed to the dev
     * @param msg   Message of the error.
     * @param t     Throwable exception.
     */
Error log with debug, tag, message and throwable.
@param tag   Tag to show.
@param debug Is this a debug log (= for the lib) or a log that should be displayed to the dev
@param msg   Message of the error.
@param t     Throwable exception.
Error log with debug tag message and throwable . @param tag Tag to show . @param debug Is this a debug log ( = for the lib ) or a log that should be displayed to the dev @param msg Message of the error . @param t Throwable exception .
public static void error(String tag, boolean debug, String msg, Throwable t) {
        if (!debug || BuildConfig.DEBUG_LOG) {
            Log.e(tag, msg, t);
        }
        if (BuildConfig.CRASHLYTICS_ACTIVATED) {
            if (t != null) {
                FirebaseCrashlytics.getInstance().recordException(new Throwable(msg, t));
            } else {
                FirebaseCrashlytics.getInstance().log("E/" + tag + ": " + msg);
            }
        }
    }
public static void error ( String tag , boolean debug , String msg , Throwable t ) { if ( ! debug || BuildConfig . DEBUG_LOG ) { Log . e ( tag , msg , t ) ; } if ( BuildConfig . CRASHLYTICS_ACTIVATED ) { if ( t != null ) { FirebaseCrashlytics . getInstance ( ) . recordException ( new Throwable ( msg , t ) ) ; } else { FirebaseCrashlytics . getInstance ( ) . log ( "E/" + tag + ": " + msg ) ; } } }
Error log with debug, tag, message and throwable.
Error log with debug tag message and throwable .