Re: daemons logging to a file

Charles Cazabon <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
Bernhard Graf <[email protected]> wrote:
> On Friday 31 October 2003 15:27, Charles Cazabon wrote:
> > Bernhard Graf <[email protected]> wrote:
> > > I want to run a program under svscan with logs piped to multilog.
> > > Unfortunately this program can only log to either syslog or to a file.
> >
> > Can it log to file "/dev/stdout" or similar ("/dev/fd/1", whatever your OS
> > has)?
> 
> ERROR: Problem with internal logger. Please check the permissions on the
> /dev/stdout file.

Okay, no good then.  What program, exactly, are you trying to run?  Patching
it might actually be the easiest solution.  Another might be to write a tiny
LD_PRELOAD shim library which makes the syslog functions actually just spit
their message to stdout or stderr.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                              <[email protected]>
GPL'ed software available at:     http://www.qcc.ca/~charlesc/software/
-----------------------------------------------------------------------
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.