Skip to main content

Logger configuration

The Navigation SDK UX Framework is pre-built with the comprehensive logging system. You can write logs to different outputs based on whether debug mode is enabled or not. You can filter log messages by a log level through configuration API:

val config = DashConfig.create(
applicationContext = applicationContext,
accessToken = getString(R.string.mapbox_access_token)
) {
logLevel = LogsExtra.LOG_LEVEL_ERROR
}
Dash.init(config)

The default value is LogsExtra.LOG_LEVEL_INFO.

Was this page helpful?