{"repo":"alexanderwe/LoggingKit","free":true,"listed":false,"github":"https://github.com/alexanderwe/LoggingKit","clone":"git clone https://github.com/alexanderwe/LoggingKit.git","description":"A micro framework for logging in Swift","language":"Swift","stars":10,"topics":["swift","oslog","ios","watchos","macos","tvos","logging","logging-library"],"license":"MIT","category":"mobile-apps","readme_excerpt":"LoggingKit LoggingKit is a micro framework for logging based on log providers Features - [x] Define your own log providers - [x] Combine ready - [x] Comes with pre-defined OSLogProvider which uses os log under the hood Example The example application is the best way to see LoggingKit in action. Open Example/LoggingDemo in Xcode and run the app. After the application has started you should see several log messages in your Xcode console and the Console.app for the device you ran the app on. Installation Swift Package Manager To integrate using Apple's Swift Package Manager, add the following as a dependency to your Package.swift : Alternatively navigate to your Xcode project, select Package Dependencies and click the + icon to search for LoggingKit . Usage Define log categories Extend LogCategories to declare the categories for your app: Register log providers Register one or more log providers at app startup: Log messages Combine LoggingKit offers extensions on Publisher to log output and failure values inline: Custom providers Conform to LogProvider to route logs to any backend: Register it alongside the built-in provider: OSLogProvider LoggingKit ships with OSLogProvider , which uses os log under the hood. Messages appear in the Console.app on your Mac and in the Xcode console. Open Console.App , select the target device, and filter by subsystem or category to view the messages printed by OSLogProvider . Contributing Contributions are very welcome 🙌 License","default_branch":null,"files":null,"tree":[],"storefront":"/r/alexanderwe","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alexanderwe/LoggingKit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}