On Mon, 2 Sep 2013 14:21:52 -0500 William Hubbs <[email protected]> wrote:
> I can see why someone might want to use escape codes for color > displays, etc. However, imo, escape codes do not belong in log files. They belong there so future display can remain colorful. Why do they not belong there? What do people have to do who want them? > mgorny says many people benefit from having escape codes in log > files, but I see no benefit from it, and I don't like going through > build.log because of them. If you load a build.log into an editor, the > escape sequences are basically trash characters that get in the way. They make some sections differ and therefore stand out; so, you get a much faster impression of what you are looking at is what you want. Why do you open them in an editor and not in a viewer? > Does anyone else have an opinion on this? There are definitely enough people that want them; so, why not have them by default and strip them if you don't want them? The opposite, adding escape codes where there are none; is a much harder thing to do. Actually, I would love to see even more codes in build.log such that they come more machine parseable; for instance, there is no indication which process outputs a certain message, or whether the message happened on stdout or stderr. Such information is quite crucial, yet it is missing; it would be neat if I could just grep the last stderr lines of the last process that's not emerge or make, giving me exactly the gcc error I need to see. Once I found that line, grepping context is easy. Until then, I'm stuck with having to scroll up to that point; and while I know -j1 helps with that, it would be crude to ignore non -j1 logs... If you're trying to more efficiently parse logs; consider adding more information instead, because dropping information does not really gain. -- With kind regards, Tom Wijsman (TomWij) Gentoo Developer E-mail address : [email protected] GPG Public Key : 6D34E57D GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D
signature.asc
Description: PGP signature
