Defaults to Rails.root/log/
config.logger = Logger.new(STDOUT)
config.log_formatter = ::Logger::Formatter.new
config.log_level = :error
Uncontrollable errors such as fatal program crash
error An error that can be controlled by the program
warn warning
info Information useful for system operation and management
Information for debug developers
Everything above the set level is displayed (if: error, fatal and error)
logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
Recommended Posts