Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: 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 19:03:30
Message-Id: 20130903190314.GA5627@linux1
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 Ulrich Mueller
1 On Tue, Sep 03, 2013 at 10:25:19AM +0200, Ulrich Mueller wrote:
2 > >>>>> On Tue, 3 Sep 2013, Tom Wijsman wrote:
3 >
4 > > On Mon, 2 Sep 2013 14:21:52 -0500
5 > > William Hubbs <williamh@g.o> wrote:
6 >
7 > >> I can see why someone might want to use escape codes for color
8 > >> displays, etc. However, imo, escape codes do not belong in log files.
9 >
10 > > They belong there so future display can remain colorful.
11 >
12 > > Why do they not belong there? What do people have to do who want
13 > > them?
14 >
15 > Escape sequences have been designed for communication with peripheral
16 > devices, not for markup or as a storage format.
17 >
18 > Also "future colorful display" generally won't be portabe because
19 > escape sequences depend on the setting of the TERM variable. (And
20 > again, software that emits them with TERM=dumb or TERM unset is
21 > broken.)
22
23 Ulrich has summed this up well here. The bottom line is that escape
24 sequences are for communicating with the user's peripheral devices.
25 Since yours may not be the same as the user's who created the log, you
26 don't even know that yours will respond the same way.
27
28 I don't care what goes to the user's terminal, but these escape
29 sequences do not belong in log files.
30
31 William

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies