What is the best/easiest way to configure logging for code kept in the lib directory?
We can use Rails logger directly into the lib, see the following snippet.
require 'logger' Rails.logger.info "Hay..!!! Im in lib" Rails.logger.debug "Debugging this object from Lib #{object.inspect}" Rails.logger.error "This is an error..."