mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-18 14:34:24 +01:00
13 lines
410 B
Swift
13 lines
410 B
Swift
import Foundation
|
|
import BreezLiquidSDK
|
|
|
|
class BreezLiquidSDKLogger: Logger {
|
|
static let emitterName: String = "breezLiquidSdkLog"
|
|
|
|
func log(l: LogEntry) {
|
|
if RNBreezLiquidSDK.hasListeners {
|
|
RNBreezLiquidSDK.emitter.sendEvent(withName: BreezLiquidSDKLogger.emitterName,
|
|
body: BreezLiquidSDKMapper.dictionaryOf(logEntry: l))
|
|
}
|
|
}
|
|
} |