Using logger in Rails 4
logging, ruby-on-rails-4
Solution
I think you should use it like this in your method. Checkout section 2.3 here
def your_method
logger.debug "This is from debug"
logger.info "This is from info"
end
Problem
I'm working on a Rails 4 project, and I can't seem to make anything show up in my development log when I call `Rails.logger.debug "test"` I've tried searching online but I feel like I haven't made much progress. How would I go about setting up a logger and telling it to write in my development log file? Any help would be greatly appreciated.