Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Can we have process names and stdout / stderr indication to more efficiently parse build logs? (was: Re: [gentoo-dev] rfc: escape sequences in logs)
Date: Tue, 03 Sep 2013 08:25:34
Message-Id: 21029.40175.488797.249157@a1i15.kph.uni-mainz.de
In Reply to: Can we have process names and stdout / stderr indication to more efficiently parse build logs? (was: Re: [gentoo-dev] rfc: escape sequences in logs) by Tom Wijsman
1 >>>>> On Tue, 3 Sep 2013, Tom Wijsman wrote:
2
3 > On Mon, 2 Sep 2013 14:21:52 -0500
4 > William Hubbs <williamh@g.o> wrote:
5
6 >> I can see why someone might want to use escape codes for color
7 >> displays, etc. However, imo, escape codes do not belong in log files.
8
9 > They belong there so future display can remain colorful.
10
11 > Why do they not belong there? What do people have to do who want
12 > them?
13
14 Escape sequences have been designed for communication with peripheral
15 devices, not for markup or as a storage format.
16
17 Also "future colorful display" generally won't be portabe because
18 escape sequences depend on the setting of the TERM variable. (And
19 again, software that emits them with TERM=dumb or TERM unset is
20 broken.)
21
22 Ulrich

Replies