{"repo":"sushichop/Puppy","free":true,"listed":false,"github":"https://github.com/sushichop/Puppy","clone":"git clone https://github.com/sushichop/Puppy.git","description":"A flexible logging library written in Swift","language":"Swift","stars":217,"topics":["logging","swift","macos","ios","linux","darwin","server-side-swift","swift-log","windows","cross-platform"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Puppy Puppy is a flexible logging library written in Swift 🐶 It supports multiple transports(console, file, syslog, and oslog) as loggers. It not only works alone, but also as a backend for apple/swift-log. Furthermore, it has file log rotation feature and you can also customize the log format as you like. And it supports cross-platform(Darwin, Linux, and Windows) . Features - Written in Swift. - Supports cross-platform(Darwin, Linux, and Windows). - Supports console, file, syslog, and oslog as loggers. - Supports automatic log rotation about file logger. - Also Works as a backend for apple/swift-log . Examples Basic Usage Logging to mutliple transports(e.g. console and file). It is recommended that the first argument of each logger be a unique reverse-order FQDN since it is also used internally for a DispatchQueue 's label. Use file log rotation Logging to file and use log rotation feature. Use with apple/swift-log Logging to multiple transports(e.g. console and syslog) as a backend for apple/swift-log . Here is a practical example of using Puppy with Vapor, which uses apple/swift-log internally. Customize the logging format Customize the log format using Formattable protocol. Logging to oslog for example. Create a custom logger You can also create your own custom logger. The custom logger needs to conform to Loggerable protocol. License Puppy is available under the MIT license. See the LICENSE file for details.","default_branch":null,"files":null,"tree":[],"storefront":"/r/sushichop","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sushichop/Puppy/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."}