Skip to content
accelerando

Logging in Rails outside a controller

You can use

RAILS_DEFAULT_LOGGER.log "foobar"
# or
Rails.logger.log "blah"

outside a controller for logging.

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

*

Close
E-mail It