Skip to main content
Version: 1.0.0

Android Log Integration with Activity Markers

Appxiom SDK enables developers to enhance issue diagnostics by integrating log statements as activity markers. These markers are captured alongside lifecycle events and are sent to the Appxiom server only when an issue is reported, providing valuable context for debugging and root cause analysis.

Why Use Appxiom Log for Activity Markers?

  • The default Log class in Android prints statements to logcat, but does not persist them for issue analysis.
  • By replacing the default import with tech.appxiom.android.core.Log, your log statements will be printed to logcat as well as become activity markers that are tracked by Appxiom and included in issue reports.
  • There is no limit to the number of log markers you can set. Markers are only sent to the server when an issue is raised, ensuring efficient data usage.

How to Integrate Appxiom Log

Replace all or relevant instances of the default Android Log import in your project files:

// Old import
import android.util.Log;
// New import for Appxiom integration
import tech.appxiom.android.core.Log;

Frequently Asked Questions (FAQ)

Q: What is the benefit of using Appxiom's Log class over the default Android Log?
A: Appxiom's Log class prints to logcat as well as allows your log statements to be tracked as activity markers and included in issue reports, providing more context for debugging and root cause analysis.

Q: Is there a limit to the number of log markers I can set?
A: No, you can set as many log markers as needed in your project. There is no restriction on the number of activity markers.

Q: Do I need to change my log statements' syntax?
A: No, just update the import statement to use Appxiom's Log class. The usage and syntax remain the same as the default Android Log.

Q: Are log markers visible in the Appxiom dashboard?
A: Yes, activity markers are shown alongside lifecycle events when viewing an issue in the Appxiom dashboard, providing valuable context for each reported issue.

Q: Are log markers sent in real-time?
A: No, log markers are only sent to the server when an issue is reported, not in real-time, ensuring efficiency.