{"repo":"23122K/swift-loggable","free":true,"listed":false,"github":"https://github.com/23122K/swift-loggable","clone":"git clone https://github.com/23122K/swift-loggable.git","description":"Set of macros that support type-wide and per-function logging with ability to customize how logs are handled","language":"Swift","stars":15,"topics":["logging","macros","swift","swift-macros"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Loggable A set of macros that support type-wide and per-function logging with ability to customize how logs are handled. Overview There are many situations where logging additional information is helpful. However most of them are neglected as they reqire some boilerplate, this is especially present in bidirectional architectures. Loggable aims to simplify this by providing macros that can: Annotate all methods within type or extension There is no need to annotate each method individually - simply apply the desired annotation to the declaration, and let the magic happen. Standalone functions can also be annotated. Customize how logs are handled All macros include the ability to add tags to logged functions, suppress their output or parameters, or ecent exclude the functions entirely from emmiting an event. Leverage OSLog support Loggable provides macros that leverage Apple's OSLog framework, eliminating the need to manually create a Logger instance, configure subsystems and categories, or log each function individually. On top of that , Loggable does not bind you into any proprietary logging system - use the logger of you choice without compromising on convinence that comes with macros. Get started You can start using Loggable in just two simple steps: 1. Import Loggable package and enable macros. 2. Mark desired type with @Logged annotation, eg.: That's it! Now, whenever the save method is invoked, an event is emitted that captures metadata such as the location, signature, pa","default_branch":null,"files":null,"tree":[],"storefront":"/r/23122K","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/23122K/swift-loggable/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."}