mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Refactor TelegramApi module
This commit is contained in:
11
submodules/TelegramApi/Sources/TelegramApiLogger.swift
Normal file
11
submodules/TelegramApi/Sources/TelegramApiLogger.swift
Normal file
@@ -0,0 +1,11 @@
|
||||
import Foundation
|
||||
|
||||
private var telegramApiLogger: (String) -> Void = { _ in }
|
||||
|
||||
public func setTelegramApiLogger(_ f: @escaping (String) -> Void) {
|
||||
telegramApiLogger = f
|
||||
}
|
||||
|
||||
func telegramApiLog(_ what: @autoclosure () -> String) {
|
||||
telegramApiLogger(what())
|
||||
}
|
||||
Reference in New Issue
Block a user