{"repo":"zormandi/logcraft","free":true,"listed":false,"github":"https://github.com/zormandi/logcraft","clone":"git clone https://github.com/zormandi/logcraft.git","description":"A zero-configuration structured logging solution for pure Ruby or Ruby on Rails projects.","language":"Ruby","stars":52,"topics":["logger","logging","rails","ruby"],"license":"MIT","category":"analytics","readme_excerpt":"Logcraft Logcraft is a zero-configuration structured logging library for pure Ruby or Ruby on Rails applications. It is the successor to Ezlog with which it shares its ideals but is reimagined and reimplemented to be more versatile and much more thoroughly tested. Logcraft's purpose is threefold: 1. Make sure that our applications are logging in a concise and sensible manner; emitting no unnecessary \"noise\" but containing all relevant and necessary information (like timing or a request ID). 2. Make sure that all log messages are written to STDOUT in a machine-processable format (JSON). 3. Achieving the above goals should require no configuration in the projects where the library is used. Logcraft 3 supports: Ruby 3.2 and up (tested with 3.2, 3.3 and 3.4) Rails 7.1 and up (tested with 7.1, 7.2 and 8.0) [!NOTE] If you're using Ruby 3.1 or earlier along with Rails 7.0 or earlier, then take a look at Logcraft 2.3. Table of contents Installation Rails Non-Rails applications Usage Structured logging Adding context information to log messages Rails logging The log level JSON serialization Configuration options Rails configuration Non-Rails configuration Integration with DataDog RSpec support Development Contributing Disclaimer License Code of Conduct Installation Rails Add this line to your application's Gemfile: Although Logcraft sets up sensible defaults for all logging configuration settings, it leaves you the option to override these settings manually in the way you're used to; ","default_branch":null,"files":null,"tree":[],"storefront":"/r/zormandi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zormandi/logcraft/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."}