I created a custom logger for my application, called CRON_LOG, just by adding this piece of code to config/environment.rb
CRON_LOG = Logger.new(\"#{Rails.root}/l
The easiest way to make a SysLog-formatted logger is to assign a formatter directly:
logger = Logger.new Rails.root.join('path', 'to', 'log') logger.formatter = Logger::Formatter.new logger.info 'Hello, world!' # Writes: # # I, [2011-06-02T20:02:34.579501 #15444] INFO -- : Hello, world!