{"id":1355,"url":"https://github.com/abdullahselek/Lighty","last_synced_at":"2025-08-02T04:30:52.409Z","repository":{"id":14569523,"uuid":"76738269","full_name":"abdullahselek/Lighty","owner":"abdullahselek","description":"Easy to use and lightweight logger for iOS, macOS, tvOS, watchOS and Linux in Swift.","archived":false,"fork":false,"pushed_at":"2025-07-22T05:52:37.000Z","size":907,"stargazers_count":52,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T07:46:24.800Z","etag":null,"topics":["carthage","cocoapods","logger","logging-library","swift"],"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/abdullahselek.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-17T17:48:22.000Z","updated_at":"2025-07-22T05:52:36.000Z","dependencies_parsed_at":"2025-03-17T16:10:41.969Z","dependency_job_id":"46399732-30ce-4942-acb4-df92d099307a","html_url":"https://github.com/abdullahselek/Lighty","commit_stats":{"total_commits":176,"total_committers":4,"mean_commits":44.0,"dds":"0.14204545454545459","last_synced_commit":"8e05adb36d9134bf18cb619059fcca311ffbba15"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/abdullahselek/Lighty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FLighty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FLighty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FLighty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FLighty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullahselek","download_url":"https://codeload.github.com/abdullahselek/Lighty/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullahselek%2FLighty/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268334607,"owners_count":24233793,"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-08-02T02:00:12.353Z","response_time":74,"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":["carthage","cocoapods","logger","logging-library","swift"],"created_at":"2024-01-05T20:15:44.543Z","updated_at":"2025-08-02T04:30:52.080Z","avatar_url":"https://github.com/abdullahselek.png","language":"Swift","funding_links":[],"categories":["Logging","Logger"],"sub_categories":["Other Hardware","Other free courses"],"readme":"[![Build Status](https://github.com/abdullahselek/Lighty/workflows/Lighty%20CI/badge.svg)](https://github.com/abdullahselek/Lighty/actions)\n![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Lighty.svg)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Swift Package Manager Compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)\n[![Coverage Status](https://coveralls.io/repos/github/abdullahselek/Lighty/badge.svg?branch=master)](https://coveralls.io/github/abdullahselek/Lighty?branch=master)\n[![Platform](https://img.shields.io/cocoapods/p/Lighty.svg?style=flat)](https://cocoapods.org/pods/Lighty)\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/abdullahselek/Lighty/blob/master/LICENSE)\n\n# Lighty\nEasy to use and lightweight logger for iOS, macOS, tvOS, watchOS and Linux in Swift.\n\n## Screenshots\n\n![default_theme](https://github.com/abdullahselek/Lighty/blob/master/Screenshots/default_theme.png)\n![dark_theme](https://github.com/abdullahselek/Lighty/blob/master/Screenshots/dark_theme.png)\n\n## Requirements\n\n| Lighty Version | Minimum iOS Target | Minimum OS X Target | Minimum watchOS Target | Minimum tvOS Target | Swift Version |\n|:--------------------:|:---------------------------:|:---------------------------:|:--------------------:|:---------------------------:|:---------------------------:|\n| 1.1.7 | iOS 10 | OS X 10.11 | watchOS 3.0 | tvOS 10.0 | Swift 5 |\n| 1.1.6 | iOS 9 | OS X 10.9 | watchOS 2.0 | tvOS 9.0 | Swift 4.1 |\n| 1.1.5 | iOS 9 | OS X 10.9 | watchOS 2.0 | tvOS 9.0 | Swift 4.0 |\n| 1.1.4 | iOS 9 | OS X 10.9 | watchOS 2.0 | tvOS 9.0 | Swift 3.x |\n\n## CocoaPods\n\nCocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:\n```\t\n$ gem install cocoapods\n```\n\nTo integrate Lighty into your Xcode project using CocoaPods, specify it in your Podfile:\n```\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '10.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n\tpod 'Lighty', '~\u003e1.1.7'\nend\n```\n\nThen, run the following command:\n```\n$ pod install\n```\n\n## Carthage\n\nCarthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with Homebrew using the following command:\n\n```\nbrew update\nbrew install carthage\n```\n\nTo integrate Lighty into your Xcode project using Carthage, specify it in your Cartfile:\n\n```\ngithub \"abdullahselek/Lighty\" ~\u003e 1.1.7\n```\n\nRun carthage update to build the framework and drag the built Lighty.framework into your Xcode project.\n\n## Swift Package Manager\n\nModify your Package.swift file to include the following dependency:\n\n```\n.package(url: \"https://github.com/abdullahselek/Lighty.git\", from: \"1.1.7\")\n```\n\nRun  `swift package resolve`\n\n## Example Usage\n```\nimport Lighty\n````\n\n```\nlet logger = LightyLogger.sharedInstance\n\nlogger.log(type: .verbose, message: \"Verbose\")\nlogger.log(type: .debug, message: \"Debug\")\nlogger.log(type: .info, message: \"Info\")\nlogger.log(type: .warn, message: \"Warn\")\n\nLightyLogger.sharedInstance.log(type: .error, message: \"Error for test :)\")\n```\n\nor globally add an instance to `AppDelegate`\n\n```\nimport Lighty\n\nlet logger = LightyLogger.sharedInstance\n\nclass AppDelegate: UIResponder, UIApplicationDelegate {\n    ...\n}\n```\n\nand you can reach `logger` instance from module classes.\n\nYou can set your own date formatter and separator\n```\nlet dateFormatter = DateFormatter()\ndateFormatter.dateStyle = .long\ndateFormatter.timeStyle = .long\nlogger.dateFormatter = dateFormatter\n```\n\n```\nlogger.separator = \" + \"\n```\n\nEnable/Disable formatted date logs\n```\nlogger.enableDate = false\n```\n\nEnable/Disable logging\n```\nlogger.enable = false\n```\n\nLogs for just debug mode\n```\nlogger.dlog(type: .warn, message: \"Log for just debug mode\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2FLighty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahselek%2FLighty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahselek%2FLighty/lists"}