Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: escape sequences in logs
Date: Mon, 02 Sep 2013 21:22:51
Message-Id: 21029.415.94299.937045@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-dev] rfc: escape sequences in logs by William Hubbs
1 >>>>> On Mon, 2 Sep 2013, William Hubbs wrote:
2
3 > I can see why someone might want to use escape codes for color
4 > displays, etc. However, imo, escape codes do not belong in log
5 > files.
6
7 > mgorny says many people benefit from having escape codes in log
8 > files, but I see no benefit from it, and I don't like going through
9 > build.log because of them. If you load a build.log into an editor,
10 > the escape sequences are basically trash characters that get in the
11 > way.
12
13 > Another consideration is if someone puts messages from a build.log
14 > directly in a bug and the messages contain escape codes, this will
15 > crash things like pybugz because bugzilla doesn't filter out the
16 > escape character.
17
18 > Does anyone else have an opinion on this?
19
20 Log files should be plain text without any embedded font attributes or
21 other formatting.
22
23 I'd consider any tool as broken if it outputs escape sequences when
24 the output doesn't go to a terminal. (Unless such output was
25 explicitly asked for.)
26
27 Ulrich

Replies

Subject Author
Re: [gentoo-dev] rfc: escape sequences in logs Kent Fredric <kentfredric@×××××.com>