logging - Rails log levels to files -
i want log warn messages file warn.log, error messages file error.log. i've googled many pages , stackoverflow, didn't find parallel topics. have suggestions?
use gem multi_level_logger
add following in config/environments/production.rb
config.logger = multilevellogger::mlogger.create(:all=>true)
now logs written separate files. , default logger disabled.
for more info check here
Comments
Post a Comment