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