id author title date pages extension mime words sentences flesch summary cache txt www-honeybadger-io-1668 Logging in Ruby with Logger and Lograge - Honeybadger Developer Blog .html text/html 1915 211 79 Logging in Ruby with Logger and Lograge Honeybadger Developer Blog Logging in Ruby with Logger and Lograge In this article, Diogo Souza introduces us to Ruby's logging system and the LogRage gem. In this article, we'll take a ride through the available options of logging for Ruby and Rails, from the built-in ones to the beloved third-party community frameworks. Ruby comes with two built-in options to handle logging: printing commands (specially designed for command-line scenarios) and the Logger class. This is very useful in production, where we may not want to save "debug" logs due to size or security reasons. It works by allowing devs to overwrite the default template that Logger uses to print logs. For example, we could use the JSON module to output our logs in that format. Thus, if you want to work with more than one logging library, you can do so within Rails logger: ./cache/www-honeybadger-io-1668.html ./txt/www-honeybadger-io-1668.txt