{"id":18389295,"url":"https://github.com/rightpoint/slog","last_synced_at":"2025-06-26T03:35:17.589Z","repository":{"id":62455639,"uuid":"41309602","full_name":"Rightpoint/slog","owner":"Rightpoint","description":"A simple logging utility for Swift","archived":false,"fork":false,"pushed_at":"2017-09-16T15:58:06.000Z","size":76,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-29T06:03:31.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/Rightpoint.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":"2015-08-24T15:00:38.000Z","updated_at":"2018-02-07T15:40:06.000Z","dependencies_parsed_at":"2022-11-01T23:46:37.888Z","dependency_job_id":null,"html_url":"https://github.com/Rightpoint/slog","commit_stats":null,"previous_names":["raizlabs/slog"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Rightpoint/slog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2Fslog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2Fslog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2Fslog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2Fslog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rightpoint","download_url":"https://codeload.github.com/Rightpoint/slog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rightpoint%2Fslog/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261995483,"owners_count":23242202,"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":[],"created_at":"2024-11-06T01:42:26.777Z","updated_at":"2025-06-26T03:35:17.570Z","avatar_url":"https://github.com/Rightpoint.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slog\n\n[![Swift 3.0](https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat)](https://swift.org)\n[![Version](https://img.shields.io/cocoapods/v/Slog.svg?style=flat)](http://cocoapods.org/pods/Slog)\n[![License](https://img.shields.io/cocoapods/l/Slog.svg?style=flat)](http://cocoapods.org/pods/Slog)\n[![Platform](https://img.shields.io/cocoapods/p/Slog.svg?style=flat)](http://cocoapods.org/pods/Slog)\n\nA simple Swift logging library.\n\n## Basic use\n\nInitialize with a default level, and if emojis should be included in logs:\n```Swift-3\nlet log = Slog(level: .warn)\n```\n\nThen you can log with functions for each of the log levels (with their associated emoji):\n* 📖 \u0026nbsp; verbose\n* 🐝 \u0026nbsp; debug\n* ✏️ \u0026nbsp; info\n* ⚠️ \u0026nbsp; warn\n* ⁉️ \u0026nbsp; error\n* off\n\nFor example:\n```Swift-3\nlog.error(\"This is an error!\")\n```\nSetting the level of a log will only print out those logs at that level or above.\n```Swift-3\nlog.level = .verbose\n```\nYou can also initialize a log with a name. You may want to have different logs for App Lifecycle, API, UI, Data, etc. This would allow you to have different logs \u0026 set different log levels depending upon what you are trying to monitor or track down. The log name will be printed out as part of any log message for that log.\n```Swift-3\nlet lifeCycleLog = Slog(name:\"LifeCycle\", level: .verbose, useEmoji: true)\n```\n\nYou could use this log in the AppDelegate to monitor app lifecycles. For example putting this code in `didFinishLaunchingWithOptions`:\n```Swift-3\nlifeCycleLog.verbose(\"App finished launching with options \\(launchOptions)\")\n```\n\nwould print:\n\n```\n📖|LifeCycle|2017-03-23 10:55:37.193 AppDelegate.swift application(_:didFinishLaunchingWithOptions:) line 22:\nApp did finish launching with options: nil\n```\n\nYou can turn off the emoji use during initialization of the log or by setting the log's instance var `useEmoji` to false.\n\n## Example Project\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Installation\n\nSlog is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"Slog\"\n```\n\n## Author\n\njohnstricker, john.stricker@raizlabs.com\n\n## License\n\nSlog 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%2Frightpoint%2Fslog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frightpoint%2Fslog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frightpoint%2Fslog/lists"}