Will Parsons
9/1/2007 1:13:00 AM
greg wrote:
> Hi All,
>
> I am having trouble with pointing the syslog messages to a particular
> facility. Is this the right way to point it at facility local1:
>
> Syslog.open('name_of_prog', facility = Syslog::LOG_LOCAL1)
> Syslog.log(Syslog::LOG_NOTICE, "message_goes_here")
> Syslog.close
>
> I would really appreciate your help!
The way I do it is:
-----
require 'syslog'
....
$log = Syslog.open('progname', Syslog::LOG_PID, Syslog::LOG_LOCAL1)
....
$log.info("messsage")
------
--
Will