# SyslogLogger issues

**URL:** <https://discuss.rubyonrails.org/t/sysloglogger-issues/24985>\
**Category:** rubyonrails-talk\
**Created:** [February 15, 2008, 7:13pm UTC](https://discuss.rubyonrails.org/t/sysloglogger-issues/24985 "2008-02-15T19:13:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freddy\_Andersen](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@Freddy\_Andersen](https://discuss.rubyonrails.org/u/Freddy_Andersen)\
**Post date:** [February 15, 2008, 7:13pm UTC](https://discuss.rubyonrails.org/t/sysloglogger-issues/24985/1 "2008-02-15T19:13:52Z")

</div>

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?
