[avahi] Logging configuration

Lennart Poettering lennart at poettering.net
Tue Mar 25 15:55:14 PDT 2008


On Fri, 29.02.08 08:38, Xavier Cambar (xcambar at gmail.com) wrote:

> Hi,

Ho!

> I've been looking for a logging facility in Avahi, but I can't find  
> any log file in my usual dirs (/var/log/ and subsequents).

Avahi logs to the LOG_DAEMON syslog facility like very sane daemon
should.

Depending on your distro and config this might end up in
/var/log/messages (Fedora) or /var/log/daemon.log (I think
Debian/Ubuntu).

> Moreover, I can't find either any configuration for logging in
> Avahi.

Logging is enabled by default. No need to reconfigure anything. If
avahi is run from the command line and -D is not passed it will log to
STDERR. If -D is passed it will log to syslog as mentioned above. If
you add -s to the command line log output will be directed to syslog
even if -D is not passed.

> I need that to check my service definitions are ok and some other stuff.

Aha.

Next time, please RTFM because this is well documented. Thank you.

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4


More information about the avahi mailing list