Last active
May 29, 2017 05:46
-
-
Save sauvikatinnofied/6422441028a7de88d12ad4a64e56c380 to your computer and use it in GitHub Desktop.
TinyLoggerUsages Medium Blog Post
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
Logger.log(message: "This is a DEBUG message", event: .d) // DEBUG log | |
Logger.log(message: "This is an ERROR message", event: .e) // ERROR log | |
Logger.log(message: "This is an INFO message", event: .i) // INFO log | |
Logger.log(message: "This is a VERBOSE message", event: .v) // VERBOSE log | |
Logger.log(message: "This is a WARNING message", event: .w) // WARNING log | |
Logger.log(message: "This is a SEVERE message", event: .s) // SEVERE Error log | |
// LOG ON XCODE CONSOLE | |
2017-05-13 12:56:34445 [💬][AppDelegate.swift]:20 19 application(_:didFinishLaunchingWithOptions:) -> This is a DEBUG message | |
2017-05-13 12:56:34463 [‼️][AppDelegate.swift]:21 19 application(_:didFinishLaunchingWithOptions:) -> This is an ERROR message | |
2017-05-13 12:56:34463 [ℹ️][AppDelegate.swift]:22 19 application(_:didFinishLaunchingWithOptions:) -> This is an INFO message | |
2017-05-13 12:56:34464 [🔬][AppDelegate.swift]:23 19 application(_:didFinishLaunchingWithOptions:) -> This is a VERBOSE message | |
2017-05-13 12:56:34464 [⚠️][AppDelegate.swift]:24 19 application(_:didFinishLaunchingWithOptions:) -> This is a WARNING message | |
2017-05-13 12:56:34465 [🔥][AppDelegate.swift]:25 19 application(_:didFinishLaunchingWithOptions:) -> This is a SEVERE message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment