4 "summary": "Small Debug logger written in Swift.",
5 "description": "NOTE: EXPERIMENTAL\n\nSmall Debug logger written in Swift. It can log the name of the file in which it appears, the name of the declaration and the line number. Different types of logs are supported as well: text = š¤, debug = š„, warning = ā ļø, error = ā, fixme = š.\n\nThere is a default 'DPrint.log' method which accepts the following arguments:\n* #item (Any) -> The item(s) to print.\n* #path (String)\t-> The name of the file in which it appears (optional).\n* #functionName (String) -> The name of the declaration in which it appears (optional).\n* #lineNo (Int) -> The line number on which it appears (optional).\n* #messageType (DPrintMessageType)\t-> The type of icon to show when printing the message (optional).\nFive more convenient methods have been provided to help distinguish logs based on type (i.e. DPrint.logText, DPrint.logDebug, DPrint.logError, DPrint.logFixMe, DPrint.logWarning). See usage below.\n\n## Usage:\n\nIn your class:\n\n```Swift\nimport DPrint\n```\n\nThen when you want to log something use one of the following methods:\n```Swift\nDPrint.log(\"blah\", [\"item\", \"item 1\"], [\"item\": 6, \"item2\": 8], 9)\nDPrint.logText([2, 4], \"text\")\nDPrint.logDebug(\"A debug message\")\nDPrint.logError(\"An error message\")\nDPrint.logFixMe(\"Fix me please\")\nDPrint.logWarning(\"Please be careful\")\n```\n\nThe output will be:\n```\nFile: ViewController.swift | Function: viewDidLoad() | lineNo: 18\n-> blah\n-> [\"item\", \"item 1\"]\n-> [\"item\": 6, \"item2\": 8]\n-> 9\nš¤ | File: ViewController.swift | Function: viewDidLoad() | lineNo: 21\n-> [2, 4]\nš¤ | File: ViewController.swift | Function: viewDidLoad() | lineNo: 21\n-> text\nš„ | File: ViewController.swift | Function: viewDidLoad() | lineNo: 22\n-> A debug message\nā | File: ViewController.swift | Function: viewDidLoad() | lineNo: 23\n-> An error message\nš | File: ViewController.swift | Function: viewDidLoad() | lineNo: 24\n-> Fix me please\nā ļø | File: ViewController.swift | Function: viewDidLoad() | lineNo: 25\n-> Please be careful\n```",
6 "homepage": "https://github.com/GErakleous/DPrint",
12 "George Erakleous": "g.erakleous@gmail.com"
15 "git": "https://github.com/GErakleous/DPrint.git",
21 "source_files": "DPrint/Classes/**/*",
22 "pushed_with_swift_version": "echo \"3.0\" > .swift-version"