Logger.info in controller not working!

Hi,

logger.info ‘test’ does not print anything to my log files when called
from the controller. If I script/console and type the same line it
does … I’ve searched online but I can’t find anything that can help
me troubleshoot.

I’ve also tried @test = logger.methods

and then debugging @test in the view but I get a bank variable.

Any suggestions welcome.

Luke

Ah … okay that was silly. The problem was the line to write to the
log was written after the line to render a view.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs