Patch: Colored debug

Olivier Goffart ogoffart at
Sun Sep 2 22:33:04 BST 2007

Le dimanche 2 septembre 2007, Martin Koller a écrit :
> On Friday 31 August 2007, Jason 'vanRijn' Kasper wrote:
> > Is it necessary to put this into the code directly when there are already
> > standalone tools that do this?  I've been using grc to do this for years
> > and it does the job quite well and it even has the ability to add custom
> > configuration files (conf.kdebug perhaps?).  For example, I use "grc tail
> > -F /var/log/{maillog,messages,mail/info,mail,warn,acpid}&" and end up
> > with a very nicely-colorized output shown here:
> >
> >
> > Or am I missing something simple?
> I also think that postprocessing is a better way as you often might need to
> check a logfile later via an editor to see what happened, and if the
> logfile contains some ESC sequences, I don't think that it is easy to read.

Coloring is only activated if you are using a tty.
If it is saved into a logfile, coloring is simply disabled.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the kde-core-devel mailing list