Logging using Crashlytics

前端 未结 5 2100

I am using multiple Crashlytics.log() commands, for example:

Crashlytics.log(\"This is message 1\");
Crashlytics.log(\"This is message 2\"); 
         


        
5条回答
  •  甜味超标
    2021-02-19 00:56

    The log message will be saved with the exception. So the Crashlytics.log("1"); wont do anything without an exception.

    You should fire like that:

    Crashlytics.log(Log.ERROR, "YourTAG", "YourMessage");
    Crashlytics.logException(new Throwable("YourERROR"));
    

提交回复
热议问题