{"id":24065992,"url":"https://github.com/kharauzov/purelogger","last_synced_at":"2025-04-23T21:02:01.738Z","repository":{"id":62451282,"uuid":"195759730","full_name":"Kharauzov/PureLogger","owner":"Kharauzov","description":"Light logger 🧐 to use during the development in the Xcode project.","archived":false,"fork":false,"pushed_at":"2020-08-01T11:57:31.000Z","size":138,"stargazers_count":5,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T21:01:54.676Z","etag":null,"topics":["debug","ios","log","logger","logging","osx","xcode"],"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/Kharauzov.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":"2019-07-08T07:33:06.000Z","updated_at":"2021-05-28T10:40:29.000Z","dependencies_parsed_at":"2022-11-01T22:46:10.668Z","dependency_job_id":null,"html_url":"https://github.com/Kharauzov/PureLogger","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kharauzov%2FPureLogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kharauzov%2FPureLogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kharauzov%2FPureLogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kharauzov%2FPureLogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kharauzov","download_url":"https://codeload.github.com/Kharauzov/PureLogger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250514767,"owners_count":21443208,"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","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","log","logger","logging","osx","xcode"],"created_at":"2025-01-09T11:18:12.493Z","updated_at":"2025-04-23T21:02:01.680Z","avatar_url":"https://github.com/Kharauzov.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)\n![Platform](https://img.shields.io/badge/platform-iOS%20%7C%20macOS%20%7C%20tvOS-lightgrey)\n[![License](https://img.shields.io/badge/license-mit-blue.svg)](https://doge.mit-license.org)\n\n## Overview\n\nPureLogger is an elegant replacement of ```Swift.print()``` in the Xcode project to use during the debugging.\n\n## Presentation\n\u003cp align=\"left\"\u003e\n\u003cimg src=\"https://github.com/Kharauzov/PureLogger/blob/master/debugWindow.png\" width=\"700px\" height=\"143px\"/\u003e\n\u003c/p\u003e\n\n## Installation\n\n### CocoaPods\n\n```ruby\npod 'PureLogger'\n```\n\n### Manually\n\nJust copy **Source** folder to your Xcode project.\n\n## How To\n\n**Method #1 - Globally**\n\nAfter adding the framework to your project, you need to import the module in your AppDelegate class.\n```swift\nimport PureLogger\n```\nThen add this line just below\n```swift\nlet log = Log.shared\n```\nAfter this you can access ```log``` istance across all project.\n```swift\nlog.debug(\"Testing debug log\")\n```\n\n**Method #2 - Locally**\n\nAfter adding the framework to your project, you need to import the module in the every class, you wish to use the logger.\n```swift\nimport PureLogger\n```\nThen you need to initialise the local logger like this\n```swift\nlet log = Log()\n```\nAfter this you can access ```log``` istance in the appropriate class.\n\n**Available methods**\n```swift\nlog.debug(...)\nlog.info(...)\nlog.warning(...)\nlog.error(...)\n```\n\nAlso you can use such logic, if you want to print only input item itself without any additional information.\n```swift\nLog(\"Simple log\")\n```\n\nBesides this, you can customize emoji, date format and other things at the output information to fit your demands 😉\n\n## Feedback\nIf you have any questions or suggestions, feel free to open issue just at this project.\n\n## License\nPureLogger and all its classes are available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkharauzov%2Fpurelogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkharauzov%2Fpurelogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkharauzov%2Fpurelogger/lists"}