secant-ios-wallet/modules/Sources/Utils/Logging/TCALogging.swift

28 lines
506 B
Swift

//
// TCALogging.swift
// Zashi
//
// Created by Lukáš Korba on 23.01.2023.
//
import Foundation
import os
import ZcashLightClientKit
extension OSLogger {
public static let live = OSLogger(logLevel: .debug, category: LoggerConstants.tcaLogs)
public func tcaDebug(_ message: String) {
guard let oslog else { return }
#if DEBUG
os_log(
"%{public}@",
log: oslog,
type: .default,
message
)
#endif
}
}