mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-17 14:04:20 +01:00
13 lines
425 B
Swift
13 lines
425 B
Swift
import Foundation
|
|
import BreezSDKLiquid
|
|
|
|
class BreezSDKLiquidLogger: BreezSDKLiquid.Logger {
|
|
static let emitterName: String = "breezSdkLiquidLog"
|
|
|
|
func log(l: LogEntry) {
|
|
if RNBreezSDKLiquid.hasListeners {
|
|
RNBreezSDKLiquid.emitter.sendEvent(withName: BreezSDKLiquidLogger.emitterName,
|
|
body: BreezSDKLiquidMapper.dictionaryOf(logEntry: l))
|
|
}
|
|
}
|
|
} |