I am thinking of using syslog in my rails applications. The process is outlined in this blog post:
- Add
gem 'SyslogLogger'
to yourGemfile
- Add
require 'syslog_logger'
to the top ofconfig/environments/production.rb
- Also uncomment the
config.logger =
line in the same file.
In production box I have 4 rails applications running using passenger. If I switch to use syslogger for all 4 of my applications then I am afraid that the log messages from all 4 applications will go to a single file and the log messages will be interleaving. Of course, I can use splunk but first I wanted to check if it was possible for me to get one log file for each of my rails application. That would be desirable for my situation.
Is that possible?