Created
July 7, 2017 02:35
-
-
Save ArchieR7/c3ad7c0d8b10c5c7a6d7ed6114eb6ffe to your computer and use it in GitHub Desktop.
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
| public func ALogDebug(_ string: Any, file: String = #file, line: Int = #line) { | |
| print("📒 \(file.components(separatedBy: "/").last ?? "")[\(line)]: \(string)") | |
| } | |
| public func ALogWarn(_ string: Any, file: String = #file, line: Int = #line) { | |
| print("⚠️ \(file.components(separatedBy: "/").last ?? "")[\(line)]: \(string)") | |
| } | |
| public func ALogInfo(_ string: Any, file: String = #file, line: Int = #line) { | |
| print("ℹ️ \(file.components(separatedBy: "/").last ?? "")[\(line)]: \(string)") | |
| } | |
| public func ALogError(_ string: Any, file: String = #file, line: Int = #line) { | |
| print("🚨 \(file.components(separatedBy: "/").last ?? "")[\(line)]: \(string)") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment