6zzewa
Last Updated: February 25, 2016
·
530
· devatotech
Avatar square

Quick Custom Rails Logger from Controller

We needed a quick way to log/debug some vars from a controller:

@logger ||= Logger.new("#{Rails.root}/log/custom.log")
@logger.debug (params[:q])
Say Thanks
Respond