# SyslogLogger issues

**URL:** <https://www.ruby-forum.com/t/sysloglogger-issues/129254>\
**Category:** Rails\
**Created:** [February 15, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/sysloglogger-issues/129254 "2008-02-15T20:14:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![heimdull](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/f4b2a3/32.png) [@heimdull](https://www.ruby-forum.com/u/heimdull)\
**Post date:** [February 15, 2008, 8:14pm UTC](https://www.ruby-forum.com/t/sysloglogger-issues/129254/1 "2008-02-15T20:14:38Z")

</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?
