bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [task #5490] syslog


From: Neal H. Walfield
Subject: Re: [task #5490] syslog
Date: Tue, 30 Jan 2007 21:30:32 +0100
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.4 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI)

The syslog facility could be implemented as follows:

The program which starts a translator opens /dev/klog on the
translator's behalf and inserts the file descriptor into the
translator's stdout and stderr.  This requires modifying settrans,
libdiskfs, etc. but not every translator individually.

Because syslog requires a few other parameters, syslog may also have
to be modified.  In this case, it could be Hurdified a bit.  It could
provide an RPC

   syslog_open (const char *ident, int priority)

the arguments of which correspond to openlog's and syslog's
parameters.  Messages would be read using the normal I/O interfaces
and the appropriate actions taken.  This allows automatically
redirecting the standard output of a translator to syslog with
priority LOG_INFO and standard error with priority LOG_ERR.

Neal





reply via email to

[Prev in Thread] Current Thread [Next in Thread]