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

Re: Logging procedure/mechanism questions



On Wed, Dec 29, 1999 at 10:47:50PM -0600, Jonathan Hall wrote:
> It would be easy to change the syslog.conf line to this effect, but my
> question is... is this the "correct" way to do it?  Is logging to the
> "local6" facility (whatever that means) a good idea, or should I hack the
> source to log to its own file somehow (I know nothing about programming w/
> syslog... It'll be an adventure. :-)

I had the same problem with Cyrus, which also logs using facility LOCAL6 by
default.  As Cyrus is a mail application, I modified it to use facility
MAIL instead and, IMHO, you probably want to make a similar modification.
The LOCAL* facilities are use by a variety of different types of
applications, which can make for messy logs.

Check the syslog man pages and decide upon an appropriate facility (eg
DAEMON) and then modify all the openlog() calls to use that facility
instead.

-mj
-- 
Michael-John Turner          | http://www.edr.uct.ac.za/~mj/
mj@phantom.eri.uct.ac.za     | Linux @ UCT -> http://www.leg.uct.ac.za/
mj@debian.org, mj@icon.co.za | PGP key via mail, WWW or finger @phantom


Reply to: