Rails logger messages test.log?
Posted
by Dave Paroulek
on Stack Overflow
See other posts from Stack Overflow
or by Dave Paroulek
Published on 2010-03-24T18:38:03Z
Indexed on
2010/03/24
21:23 UTC
Read the original article
Hit count: 325
ruby-on-rails
|logger
Is it possible to configure rails to show logger.debug messages (from logger.debug statements inside controllers) to display inside test.log (or to the console) when running unit and functional tests?
I added the following to test_helper.rb. I see messages from logger.debug statements directly inside tests but no messages from logger statements inside controller methods?
def logger
RAILS_DEFAULT_LOGGER
end
© Stack Overflow or respective owner