Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Nov 2001 16:46:48 +0100 (CET)
From:      Micke Josefsson <mj@isy.liu.se>
To:        "W. Desjardins" <bill@carracing.com>
Cc:        questions@FreeBSD.ORG
Subject:   RE: upsd & logging
Message-ID:  <XFMail.20011105164648.mj@isy.liu.se>
In-Reply-To: <20011105081809.E24781-100000@mail.carracing.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I have ftpd to log to its own file like this (in /etc/syslog.conf)

!ftpd
*.*                                             /var/log/ftpd

The ftpd logs to a facility called ftpd. A call to openlog() like:

  openlog("ftpd", LOG_PID | LOG_NDELAY, LOG_FTP);

starts this off. If you look at the sources for upsd you should be able to make
it log to a device of your liking. By changes in the openlog()-function.


/Micke



On 05-Nov-2001 W. Desjardins wrote:
> Hello,
> 
> I looked in the archives and read the syslog manpages, but still cant find
> what I am looking for. Also, I could not find any useful docs on upsd
> configuration so if someone has a pointer to config docs for upsd I would
> appreciate it :)
> 
> I have upsd running fine and it logs to the local syslog as well as
> logging to a central log server. I added confgs to syslog to log upsd to
> its own file and that is working fine, but what I would like to do is
> stop all logging of upsd to the main messages file. the logs are just
> cluttering up the file and it makes it harder to scan for other messages.
> upsd is logging under daemon, but I dont want to remove those from
> messages due to other daemons that I still want to log there.
> 
> Is it possible to stop just the upsd program from logging to
> /var/log/messages and log only to its own log file?
> 
> TIA,
> 
> Bill
> 
> ---------------------------------------------------------
> Bill Desjardins - bill@carracing.com - (USA) 305.205.8644
> http://www.CarRacing.com - Powered by FreeBSD/mod_perl
> http://www.FreeBSD.org - The Best OS money cant buy!
> http://www.EtherneXt.com - High-Performance Co-Location
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

----------------------------------
Michael Josefsson, MSEE
mj@isy.liu.se

This message was sent by XFMail
running on FreeBSD 4.4-STABLE
----------------------------------

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20011105164648.mj>