Skip to content

Commit 378ee74

Browse files
natiginfogithub-actions[bot]
authored andcommitted
[maps-android] add notes about logging (#4705)
GitOrigin-RevId: c39743901ee9b77ff3efa2c6c5725e79f2442355
1 parent d649bd5 commit 378ee74

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

DEVELOPING.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,4 +441,15 @@ And then update the Mapbox Maps SDK's version name to the snapshot version in yo
441441

442442
## Working with traces
443443

444-
If you're experiencing performance problems, enabling and analyzing traces is a crucial step for diagnosis. For step-by-step instructions on how to enable tracing and interpret the collected data, please consult the [tracing guide](https://docs.mapbox.com/android/maps/guides/debugging-and-profiling/tracing/).
444+
If you're experiencing performance problems, enabling and analyzing traces is a crucial step for diagnosis. For step-by-step instructions on how to enable tracing and interpret the collected data, please consult the [tracing guide](https://docs.mapbox.com/android/maps/guides/debugging-and-profiling/tracing/).
445+
446+
## Logging
447+
448+
The Maps SDK for Android logs are handled by [MapboxLogger](https://github.com/mapbox/mapbox-maps-android/blob/main/sdk-base/src/main/java/com/mapbox/maps/MapboxLogger.kt), which provides a unified logging interface for all SDK components. It uses `com.mapbox.common.Log` from the Mapbox Common SDK under the hood.
449+
450+
Example usage:
451+
```kotlin
452+
import com.mapbox.maps.logD
453+
// ...
454+
logD(TAG, "Debug message")
455+
```

0 commit comments

Comments
 (0)