Logging
The AppMetrica SDK logs:
- Activation of the SDK.
- Events received from the app.
- Events sent to the service.
- Events saved to the local database.
- Events sent to the server.
- Deletion of saved events from the local database.
- Various errors and warnings that may affect the expected behavior of the library.
To use the SDK logs:
-
When activating the SDK, enable logging using an extended configuration.
KotlinJavaclass YourApplication : Application() { override fun onCreate() { super.onCreate() // Creating an extended library configuration. val config = AppMetricaConfig.newConfigBuilder(API_KEY).build() // Initializing the AppMetrica SDK. AppMetrica.activate(this, config) } }
public class YourApplication extends Application { @Override public void onCreate() { super.onCreate(); // Creating an extended library configuration. AppMetricaConfig config = AppMetricaConfig.newConfigBuilder(API_KEY).build(); // Initializing the AppMetrica SDK. AppMetrica.activate(this, config); } }
-
Export the logs using adb by running the
adb logcat -v time >> ${PATH_TO_FILE}
command or open them in the Logcat IDE. -
If needed, filter the AppMetrica SDK logs by the
AppMetrica
tag.
If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.
Was the article helpful?
Previous
Next