# Sysloglogger with multiple logs

**URL:** <https://www.ruby-forum.com/t/sysloglogger-with-multiple-logs/104662>\
**Category:** Rails\
**Created:** [May 21, 2007, 11:58am UTC](https://www.ruby-forum.com/t/sysloglogger-with-multiple-logs/104662 "2007-05-21T11:58:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndorphine](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/0ea827/32.png) [@ndorphine](https://www.ruby-forum.com/u/ndorphine)\
**Post date:** [May 21, 2007, 11:58am UTC](https://www.ruby-forum.com/t/sysloglogger-with-multiple-logs/104662/1 "2007-05-21T11:58:44Z")

</div>

Hi all,  
I’ve been using SyslogLogger to do standard application logging and  
it works great. I want to do my custom application logging to a seperate  
log but I’m having problems. I create the default application logger  
with SyslogLogger.new (leaving it with the the default application name)  
my second instance of the SyslogLogger I pass it the name  
custom\_app\_log. Now in my syslog-ng conf I have 2 seperate filters for  
my app, one deafault filter that catches “rails” and the second custom  
filter which should catch “custom\_app\_log”, My default filter works  
fine but my custom logging isn’t happening, anybody got ideas about  
where I may be going wrong??

---

<div class="post-metadata">

**Author:** ![ndorphine](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/0ea827/32.png) [@ndorphine](https://www.ruby-forum.com/u/ndorphine)\
**Post date:** [May 21, 2007, 12:25pm UTC](https://www.ruby-forum.com/t/sysloglogger-with-multiple-logs/104662/2 "2007-05-21T12:25:14Z")

</div>

After re-reading the documentation, its apparent that the syslogger  
can only be initalised with one “progam\_name”

John O’gara wrote:

> Hi all,  
> I’ve been using SyslogLogger to do standard application logging and  
> it works great. I want to do my custom application logging to a seperate  
> log but I’m having problems. I create the default application logger  
> with SyslogLogger.new (leaving it with the the default application name)  
> my second instance of the SyslogLogger I pass it the name  
> custom\_app\_log. Now in my syslog-ng conf I have 2 seperate filters for  
> my app, one deafault filter that catches “rails” and the second custom  
> filter which should catch “custom\_app\_log”, My default filter works  
> fine but my custom logging isn’t happening, anybody got ideas about  
> where I may be going wrong??
