{"repo":"yegor256/loog","free":true,"listed":false,"github":"https://github.com/yegor256/loog","clone":"git clone https://github.com/yegor256/loog.git","description":"Ruby object, which you can pass to other objects, where they will use it as a logger","language":"Ruby","stars":12,"topics":["ruby","ruby-gem","logging","logger"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Object-Oriented Logger for Ruby Loog is an object-oriented logging wrapper around Ruby Logger . First, install it: Then, use it like this: The gem is basically a provider of a few pre-configured loggers, which you can use for production ( Loog::REGULAR ) or for testing ( Loog::VERBOSE ). You can also shut it up with Loog::NULL . There is also Loog::Buffer class that you can use for testing. It accumulates all log calls and then returns the entire output through the to s() method. Also, you can \"tee\" two loogs, with the help of Loog::Tee . For example, to record everything in a buffer and also show in the console: You can also truncate long messages with Loog::Ellipsized : You can add ANSI colors to log messages with Loog::Colorful , which prints debug messages in dark gray, warnings in orange, and errors in red: How to contribute Read these guidelines. Make sure your build is green before you contribute your pull request. You will need to have Ruby 2.3+ and Bundler installed. Then: If it's clean and you don't see any error messages, submit your pull request.","default_branch":null,"files":null,"tree":[],"storefront":"/r/yegor256","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yegor256/loog/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."}