mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-30 09:50:26 +00:00
git-subtree-dir: submodules/Postbox git-subtree-mainline:373769682egit-subtree-split:534443c710
12 lines
245 B
Swift
12 lines
245 B
Swift
import Foundation
|
|
|
|
private var postboxLogger: (String) -> Void = { _ in }
|
|
|
|
public func setPostboxLogger(_ f: @escaping (String) -> Void) {
|
|
postboxLogger = f
|
|
}
|
|
|
|
func postboxLog(_ what: @autoclosure () -> String) {
|
|
postboxLogger(what())
|
|
}
|