I simple question:
# development.rb
config.log_level = :debug
class ApplicationController < ActionController::Base
before_action :my_log
private
def my_log
Rails.logger.debug <<-LOG
[CUSTOM DEBUG]
some info 123
#{request.method.inspect}
...
LOG
end
And still after that development.log
is empty.
UPDATE:
It does log the requests, but to the terminal, not to development.log