APISonar


com.google.firebase.crash.FirebaseCrash.log

> com > google > firebase > crash > FirebaseCrash > log
com APIs google APIs firebase APIs crash APIs FirebaseCrash APIs log APIs

Example 1
protected void log(int priority, String tag, String message, Throwable t) {
        if (priority == Log.VERBOSE || priority == Log.DEBUG) {
            FirebaseCrash.log((priority == Log.DEBUG ? "[debug] " : "[verbose] ") + tag + ": "
                    + message);
            return;
        }
        FirebaseCrash.logcat(priority, tag, message);
        if (t == null) {
            return;
        }

        if (priority == Log.ERROR || priority == Log.WARN) {
            FirebaseCrash.report(t);
        }
    }
Example 2
public void reportError(Throwable throwable, Object... args) {
        if (args != null) {
            FirebaseCrash.log(argumentsAsString(args));
        }
        FirebaseCrash.report(throwable);
    }