Updated on 2026-08-14
This commit is contained in:
parent
842b3e494a
commit
e01127186c
14 changed files with 128 additions and 131 deletions
|
|
@ -1,20 +1,20 @@
|
|||
package com.tangem.tap.data
|
||||
|
||||
import com.tangem.blockchain.common.logging.BlockchainSDKLogger
|
||||
import com.tangem.domain.settings.repositories.SettingsRepository
|
||||
import com.tangem.datasource.local.logs.AppLogsStore
|
||||
|
||||
/**
|
||||
* BlockchainSDK logger implementation
|
||||
*
|
||||
* @property settingsRepository settings repository
|
||||
* @property appLogsStore app logs store
|
||||
*
|
||||
[REDACTED_AUTHOR]
|
||||
*/
|
||||
internal class TangemBlockchainSDKLogger(
|
||||
private val settingsRepository: SettingsRepository,
|
||||
private val appLogsStore: AppLogsStore,
|
||||
) : BlockchainSDKLogger {
|
||||
|
||||
override fun log(level: BlockchainSDKLogger.Level, message: String) {
|
||||
settingsRepository.saveLogMessage(message)
|
||||
appLogsStore.saveLogMessage(message)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue