mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
12 lines
265 B
Swift
12 lines
265 B
Swift
import Foundation
|
|
|
|
private var telegramApiLogger: (String) -> Void = { _ in }
|
|
|
|
public func setTelegramApiLogger(_ f: @escaping (String) -> Void) {
|
|
telegramApiLogger = f
|
|
}
|
|
|
|
func telegramApiLog(_ what: @autoclosure () -> String) {
|
|
telegramApiLogger(what())
|
|
}
|