Logger in development mode: console vs logfile

Rails 3.0, to the extent it matters.

So, ordinarily in development mode, logger messages end up written to
both development.log AND console, if you’re in an interactive console.

Which is just spiffy, fine.

But something I can’t figure out, if I write a logger message during the
boot process (say in config.after_initialize), then this does NOT
happen. The log message is in the log/development.log file, but NOT
written to console. Which is annoying, the reason I’m writing something
out during the boot process (echo’ing certain config) is for the
developer to see it, because it aids in debugging.

Anyone have any idea what’s going on here, and if there’s anything I can
do about it?

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