diff --git a/Sources/ElixxirDAppsSDK/EnableGrpcLogs.swift b/Sources/ElixxirDAppsSDK/EnableGrpcLogs.swift new file mode 100644 index 0000000000000000000000000000000000000000..3a56000d7c8dca004cecc348c00be3ba857b6af1 --- /dev/null +++ b/Sources/ElixxirDAppsSDK/EnableGrpcLogs.swift @@ -0,0 +1,22 @@ +import Bindings +import XCTestDynamicOverlay + +public struct EnableGrpcLogs { + public var run: (LogWriter) -> Void + + public func callAsFunction(_ writer: LogWriter) { + run(writer) + } +} + +extension EnableGrpcLogs { + public static let live = EnableGrpcLogs { writer in + BindingsEnableGrpcLogs(writer.makeBindingsLogWriter()) + } +} + +extension EnableGrpcLogs { + public static let unimplemented = EnableGrpcLogs( + run: XCTUnimplemented("\(Self.self)") + ) +}