Created
August 27, 2019 08:02
-
-
Save iamchiwon/078d4c05444fe803bc2d5952ca3cb08e to your computer and use it in GitHub Desktop.
os_log 를 타입별로 구분해서 사용하기
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension OSLog { | |
| private static var subsystem = Bundle.main.bundleIdentifier! | |
| static let ui = OSLog(subsystem: subsystem, category: "UI") | |
| static let network = OSLog(subsystem: subsystem, category: "Network") | |
| } | |
| os_log("Contact selected", log: .ui) | |
| os_log("HTTP response: %@", log: .network, responseCode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment