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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -