Logging
rainbow
Our great sponsors
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Logging
-
Manage Your Ruby Logs Like a Pro
You can choose from a number of third-party logging libraries, including Logging — based on Java's log4j library — and Lograge. Lograge is a feature-rich logging library meant to simplify the often messy and verbose Rails logs characteristic of the default application logger.
-
Custom logging in Rails apps - do you?
For Ruby I use (Logging)[https://github.com/TwP/logging] and while I'm not happy with its Rails gem it can be used without it.
rainbow
-
Manage Your Ruby Logs Like a Pro
In Ruby, this is possible using a gem like Colorize or Rainbow.
-
Where to put custom methods that are accesible anywhre in the application.
You can add methods to every object but again, usually not the best way. If you need this very often in a class / file and want to avoid a lot of repetition of calling a method on a utility class you can use Refinements to alter e.g. String for that class / file. example in Rainbow
- Best gem for coloring the Windows 10 command prompt and btw what does IRB use?
-
26 most popular Ruby/Rails repositories on GitHub in July-August 2020
Rainbow is a ruby gem for colorizing printed text on ANSI terminals. It provides a string presenter object, which adds several methods to your strings for wrapping them in ANSI escape codes. 669 stars by now
What are some alternatives?
Log4r - Log4r is a comprehensive and flexible logging library for use in Ruby programs. It features a heirarchical logging system of any number of levels, custom level names, multiple output destinations per log event, custom formatting, and more.
oh-my-posh - The most customisable and low-latency cross platform/shell prompt renderer
Lograge - An attempt to tame Rails' default policy to log everything.
colorize - Ruby string class extension. It add some methods to set color, background color and text effect on console easier using ANSI escape sequences.
Semantic Logger - Semantic Logger is a feature rich logging framework, and replacement for existing Ruby & Rails loggers.
rotp - Ruby One Time Password library
HttpLog - Log outgoing HTTP requests in ruby
torch.rb - Deep learning for Ruby, powered by LibTorch
HttpLogger - Log your http api calls just like SQL queries
multi_json - A generic swappable back-end for JSON handling.
MongoDB Logger - MongoDB logger for Rails
squib - A Ruby DSL for prototyping card games.