Hi guys,
I'm using syslogLogger to log to syslog in my project. There was issues getting this to work, but I found a workaround that has worked until now. Here is my setup:
environment.rb
config.logger = RAILS_DEFAULT_LOGGER = SyslogLogger.new('rails')
This works and syslog is passed the correct rails (if I run syslog with debug I see the rails setting) setting but the only way that I can 'catch' the info sent to syslog is by using the user.* like this
syslog.conf:
user.* /tmp/production.log
I tried this
rails.* But that does not work... The funny part is that I add rails.none for the /var/log/messages logger that removes all the entries for the rails app!! ?
*.info;mail.none;authpriv.none;cron.none;rails.none /var/log/messages
Now I'm getting ready to start more than one rails app per. server.. using user.* will catch log information from both apps.
Anyone using syslogLogger on Redhat with any insight?