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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---