Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Mar 2004 14:14:08 +0100
From:      Peder Blom <dion@bredband.net>
To:        Supote Leelasupphakorn <pjn0211@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: why can't I implement syslog ?
Message-ID:  <20040319141408.3c653517.dion@bredband.net>
In-Reply-To: <20040319081859.73821.qmail@web40610.mail.yahoo.com>
References:  <20040319081859.73821.qmail@web40610.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 19 Mar 2004 08:18:59 +0000 (GMT)
Supote Leelasupphakorn <pjn0211@yahoo.com> wrote:

> Hi all,
> 
>    I would like to log my message by using syslog so I altered
> /etc/syslog.conf like below (kill and re-start syslogd as well)
> 
> # file: /etc/syslog.conf 
> -- snip ---
> 
> local1.debug                /var/log/myScript.log
> 
> 
>   and in a shell script I use 
> 
> # /usr/bin/logger -i -p local1.debug -t myScript "this is a
> testing log message."
> 
> after I run above script nothing  to file:/var/log/myScript.log.
> Why not or
> I miss something ?
> 

You might have a program or hostname specification preceding your line
from syslog.conf. Probably true if you just appended the line to
syslog.conf. This would limit the scope of logging. See man syslog.conf!

The file "myscript.log" must exist before you restart syslogd to re-read
the configuration.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040319141408.3c653517.dion>