-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The Tuesday 2007-04-24 at 15:31 +0200, Joachim Schrod wrote:

> I don't think there's a source modification needed for syslog-ng.
> One can specify $LEVEL in a template() clause in a destination section. E.g.
> 
> destination d_file {
>     file("/var/log/messages");
>     template("$HOUR:$MIN:$SEC $TZ $HOST [$LEVEL] $MSG\n");
>     template_escape(no);
> }
> 
> (This is taken straight from the syslog-ng documentation in
> /usr/share/doc/packages/syslog-ng/syslog-ng.pdf. 

Gosh! I neglected looking in there. I thought the man page was complete! :-/

> I would add some more
> information like $DATE and $FACILITY. ;-)
> 
> $LEVEL expands to the name of the level and not to a number, though.

At least, it is something. I have seen, elsewhere, vievers that could sort 
on the priority, display in different colours, or simply hide lower 
priority messages as the user chooses.

- -- 
Cheers,
       Carlos E. R.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFGLhjZtTMYHG2NR9URAmizAJ9GAlTEBy2UAHVe7F71QlPQrCN0LACeI043
rgARFTxGKqFrYGtLoC2xIGU=
=S3ZU
-----END PGP SIGNATURE-----

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to