Re: log to multilog instead of file

Laurent Bercot <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
> I have program X. X writes to syslogd, but is also able to log to a
> file with the -l option. X runs supervised and I want X to log
> through multilog.
> 
> I now resolved this using a named pipe (daemontools-0.70):

 It should be okay.
 (You might want to use daemontools-0.76 instead, to be able to
rotate your logs at will with SIGALRM, for instance.)


> But I'm afraid this is a rather dirty solution. Is there a solution that
> is more elegant than this one?

 If your system provides /dev/stderr, /dev/fd/2, or such a device, you
could use the -l option to log to that "file". This will use X's
standard error, which you can then redirect to multilog's input.

-- 
 Ska
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.