public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] rfc: escape sequences in logs
@ 2013-09-02 19:21 William Hubbs
  2013-09-02 19:41 ` Michał Górny
                   ` (6 more replies)
  0 siblings, 7 replies; 50+ messages in thread
From: William Hubbs @ 2013-09-02 19:21 UTC (permalink / raw
  To: gentoo-dev; +Cc: mgorny

[-- Attachment #1: Type: text/plain, Size: 1957 bytes --]

On Mon, Sep 02, 2013 at 01:33:19PM +0200, Michał Górny wrote:
> Dnia 2013-09-01, o godz. 16:49:34
> William Hubbs <williamh@gentoo.org> napisał(a):
> 
> > On Sat, Aug 31, 2013 at 10:48:32PM +0200, Michał Górny wrote:
> > > Dnia 2013-08-31, o godz. 11:26:30
> > > Ulrich Mueller <ulm@gentoo.org> napisał(a):
> > > 
> > > > >>>>> On Sat, 31 Aug 2013, Michał Górny wrote:
> > > > 
> > > > > And time for a small update. 
> > > > 
> > > > In git-r3_checkout:
> > > > 
> > > >             git --no-pager diff --color --stat \
> > > >                 ${old_commit_id}..${new_commit_id}
> > > > 
> > > > I'd rather omit the --color option, otherwise log files will contain
> > > > escape sequences.
> > > 
> > > I'd rather leave it. The diff is more for pretty-printing anyway, it
> > > shouldn't really matter in the logs.
> > 
> > Please don't. I also do not want escape sequences in log files.
> 
> Ok, '--color' removed. However, I think we should work something out to
> get both parties satisfied. Maybe portage feature or a tool to 'uncruft'
> logs from escape sequences since many people actually benefit from them.

All,

I'm starting a new thread on this, because I think it might warrant some
discussion.

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.

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.

Another consideration is if someone puts messages from a build.log
directly in a bug and the messages contain escape codes, this will crash
things like pybugz because bugzilla doesn't filter out the escape
character.

Does anyone else have an opinion on this?

Thanks,

William


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 50+ messages in thread

end of thread, other threads:[~2013-09-05  9:10 UTC | newest]

Thread overview: 50+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-02 19:21 [gentoo-dev] rfc: escape sequences in logs William Hubbs
2013-09-02 19:41 ` Michał Górny
2013-09-02 20:29   ` William Hubbs
2013-09-03  4:00     ` Zac Medico
2013-09-04 13:16     ` [gentoo-dev] " Chris Brannon
2013-09-02 21:22 ` [gentoo-dev] " Ulrich Mueller
2013-09-02 23:59   ` Kent Fredric
2013-09-03  0:22 ` Can we have process names and stdout / stderr indication to more efficiently parse build logs? (was: Re: [gentoo-dev] rfc: escape sequences in logs) Tom Wijsman
2013-09-03  8:25   ` Ulrich Mueller
     [not found]     ` < 20130903194343.GB26683@waltdnes.org>
2013-09-03 19:03     ` William Hubbs
2013-09-03 20:11       ` Tom Wijsman
2013-09-03 20:41         ` [gentoo-dev] Re: Can we have process names and stdout / stderr indication to more efficiently parse build logs? Alan McKinnon
2013-09-03 21:00           ` Magnus Granberg
2013-09-03 21:10             ` Alan McKinnon
2013-09-03 21:33               ` Tom Wijsman
2013-09-03 21:03           ` Rich Freeman
2013-09-03 21:12             ` Michał Górny
2013-09-03 21:17               ` Rich Freeman
2013-09-03 21:42                 ` Tom Wijsman
2013-09-03 21:22             ` Alan McKinnon
2013-09-03 21:44               ` Tom Wijsman
2013-09-04  1:43                 ` Walter Dnes
2013-09-04  8:49                   ` Tom Wijsman
2013-09-03 21:52               ` Rich Freeman
2013-09-03 21:29             ` Tom Wijsman
2013-09-03 21:16           ` Tom Wijsman
2013-09-04  6:25             ` Duncan
2013-09-04  9:01               ` Tom Wijsman
2013-09-04  6:03         ` Can we have process names and stdout / stderr indication to more efficiently parse build logs? (was: Re: [gentoo-dev] rfc: escape sequences in logs) Kent Fredric
2013-09-04  9:07           ` Tom Wijsman
2013-09-03 19:43     ` Walter Dnes
2013-09-03 20:15       ` Tom Wijsman
2013-09-03 22:57         ` Walter Dnes
2013-09-04  7:17           ` Michał Górny
2013-09-04  9:24             ` Tom Wijsman
2013-09-04  9:59               ` Michał Górny
2013-09-04 10:38                 ` Tom Wijsman
2013-09-04 11:38                 ` Kent Fredric
2013-09-05  4:54                   ` [gentoo-dev] Re: Can we have process names and stdout / stderr indication to more efficiently parse build logs? (was: " Duncan
2013-09-05  9:10                     ` Tom Wijsman
2013-09-04 11:45                 ` Can we have process names and stdout / stderr indication to more efficiently parse build logs? (was: Re: [gentoo-dev] " Kent Fredric
2013-09-04 12:21                   ` Michał Górny
2013-09-03  4:17 ` [gentoo-dev] rfc: escape sequences in logs Richard Yao
2013-09-03  4:24   ` Kent Fredric
2013-09-03  7:33 ` Tobias Klausmann
2013-09-03  8:44   ` Ulrich Mueller
2013-09-03  7:59 ` Diego Elio Pettenò
     [not found] ` <21029.415.94299.937045@a1i15.kph .uni-mainz.de>
     [not found]   ` <CAATnKFDzLTN76Y=Td_FuSFNVRM8JOX9_ssdTQmJDNedVcvAWNA@mail. gmail.com>
2013-09-03 12:36     ` [gentoo-dev] " Duncan
2013-09-03 13:01       ` Ulrich Mueller
     [not found]       ` <21029.56744. 939619.943959@a1i15.kph.uni-mainz.de>
2013-09-03 16:19         ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox