Change logging for nRF Toolbox

This commit is contained in:
Sylwester Zieliński
2022-04-04 13:16:26 +02:00
parent b5d542f967
commit 6ffbd9b07b
10 changed files with 11 additions and 10 deletions

View File

@@ -11,6 +11,7 @@ internal const val LOG_TAG = "nRF Toolbox"
class ToolboxLogger(
private val context: Context,
private val profile: String,
private val key: String,
) {
@@ -25,7 +26,7 @@ class ToolboxLogger(
}
private fun getLogger(): LogSession? {
logSession = logSession ?: Logger.newSession(context, key, LOG_TAG)
logSession = logSession ?: Logger.newSession(context, profile, key, LOG_TAG)
return logSession
}
}