[syslog-ng] colored messages
Balazs Scheidler
bazsi at balabit.hu
Sun Dec 6 16:33:54 CET 2009
Hi,
Thanks for your contribution. It is really appreciated. There are two
questions regarding the integration of your contribution:
1) can you please you (or your employer) sign the contributory license
agreement (http://www.balabit.com/dl/CLA_patch.pdf), this allows us to
synchronize the OSE tree with the PE tree (which let's us flow patches
in both directions)
2) in addition to the legalese, I'd like to know if there's anyone else
who would think this feature is useful as a core syslog-ng feature. I'm
working on a way to make syslog-ng plugins possible, where this module
would make perfect sense.
However we're still not there yet, but I don't want to keep useful
functionality outside just because I'm not yet finished with the plugin
code.
So is there anyone who would also use message coloring? Do you need this
flexibility as the patch supports?
Thanks for anyone who takes the time to respond.
On Tue, 2009-12-01 at 00:15 +0300, Gaydov Victor wrote:
> Hello.
>
> I wrote a small patch to add colorization to syslog-ng. The idea is to
> apply different color schemes to messages (that are going to a tty, for
> example) depending on their type and importance and using standard
> syslog-ng filters. IMHO this makes tty log much more readable.
>
> There is a new keyword: 'scheme'. "scheme { ... }" construction binds
> colors to message fields and "scheme()" field of "log {...}" adds scheme
> filter that colorizes the output (before it will be sent to
> destination).
>
> The filter uses ANSI escape sequences but it's easy to extend it to
> anything else. Color support is enabled with defining 'ENABLE_COLOR' or
> using '--enable-colors' in configure script.
>
> If you'll find it useful you can use it :) The patch and example (draft)
> syslog-ng.conf are attached.
>
> --
> Gaydov Victor.
>
> Practically perfect people never permit sentiment to muddle their thinking.
> -- Mary Poppins
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
--
Bazsi
More information about the syslog-ng
mailing list