syslog question
Nelis Lamprecht
nelis at 8ball.co.za
Mon Jan 19 04:50:34 PST 2004
On Mon, 2004-01-19 at 14:09, Didier WIROTH wrote:
> Hi,
> I've this entry in syslog.conf (which is default):
>
> *.err;kern.debug;auth.notice;mail.crit /dev/console
>
> I would like also to log those messages in a file called for example:
> /var/log/console.critical (I want both, /dev/console and the log file!)
>
> How should I modify the above line to achive this?
Hi,
If you read further down in the file you will see this:
# uncomment this to log all writes to /dev/console to /var/log/console.log
#console.info /var/log/console.log
Just do as it says to log to a file as_well_as console. Change the above line
to whatever name you would like to call the file.
--
Nelis Lamprecht
PGP: http://www.8ball.co.za/pgp/nelis.key
"Unix IS user friendly.. It's just selective about who its friends are."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040119/14fcf47e/attachment.bin
More information about the freebsd-questions
mailing list