{"id":15037264,"url":"https://github.com/gerakleous/dprint","last_synced_at":"2026-02-16T05:34:02.484Z","repository":{"id":56907770,"uuid":"117965109","full_name":"GErakleous/DPrint","owner":"GErakleous","description":"Small Debug logger written in Swift to use during development.","archived":false,"fork":false,"pushed_at":"2018-01-18T12:49:24.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T01:25:10.576Z","etag":null,"topics":["debug","ios","logger","logging","swift","swift3"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GErakleous.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-18T10:01:12.000Z","updated_at":"2018-01-18T13:01:00.000Z","dependencies_parsed_at":"2022-08-20T19:33:03.560Z","dependency_job_id":null,"html_url":"https://github.com/GErakleous/DPrint","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/GErakleous/DPrint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GErakleous%2FDPrint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GErakleous%2FDPrint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GErakleous%2FDPrint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GErakleous%2FDPrint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GErakleous","download_url":"https://codeload.github.com/GErakleous/DPrint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GErakleous%2FDPrint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278747926,"owners_count":26038811,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debug","ios","logger","logging","swift","swift3"],"created_at":"2024-09-24T20:34:02.521Z","updated_at":"2025-10-07T09:14:22.643Z","avatar_url":"https://github.com/GErakleous.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DPrint\n\n[![CI Status](http://img.shields.io/travis/GErakleous/DPrint.svg?style=flat)](https://travis-ci.org/GErakleous/DPrint)\n[![Version](https://img.shields.io/cocoapods/v/DPrint.svg?style=flat)](http://cocoapods.org/pods/DPrint)\n[![License](https://img.shields.io/cocoapods/l/DPrint.svg?style=flat)](http://cocoapods.org/pods/DPrint)\n[![Platform](https://img.shields.io/cocoapods/p/DPrint.svg?style=flat)](http://cocoapods.org/pods/DPrint)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n## Installation\n\nDPrint is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'DPrint'\n```\nand then perform a pod install.\n\n## Details\n**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) -\u003e The item(s) to print.\n* #path (String)\t-\u003e The name of the file in which it appears (optional).\n* #functionName (String) -\u003e The name of the declaration in which it appears (optional).\n* #lineNo (Int) -\u003e The line number on which it appears (optional).\n* #messageType (DPrintMessageType)\t-\u003e 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-\u003e blah\n-\u003e [\"item\", \"item 1\"]\n-\u003e [\"item\": 6, \"item2\": 8]\n-\u003e 9\n🔤 | File: ViewController.swift | Function: viewDidLoad() | lineNo: 21\n-\u003e [2, 4]\n🔤 | File: ViewController.swift | Function: viewDidLoad() | lineNo: 21\n-\u003e text\n🚥 | File: ViewController.swift | Function: viewDidLoad() | lineNo: 22\n-\u003e A debug message\n❌ | File: ViewController.swift | Function: viewDidLoad() | lineNo: 23\n-\u003e An error message\n💊 | File: ViewController.swift | Function: viewDidLoad() | lineNo: 24\n-\u003e Fix me please\n⚠️ | File: ViewController.swift | Function: viewDidLoad() | lineNo: 25\n-\u003e Please be careful\n```\n\n## Author\n\nGeorge Erakleous, g.erakleous@gmail.com\n\n## License\n\nDPrint is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerakleous%2Fdprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgerakleous%2Fdprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgerakleous%2Fdprint/lists"}