public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Tom Wijsman <TomWij@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: alan.mckinnon@gmail.com
Subject: Re: [gentoo-dev] Re: Can we have process names and stdout / stderr indication to more efficiently parse build logs?
Date: Tue, 3 Sep 2013 23:16:11 +0200	[thread overview]
Message-ID: <20130903231611.0c638652@TOMWIJ-GENTOO> (raw)
In-Reply-To: <5226496A.9090104@gmail.com>

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

On Tue, 03 Sep 2013 22:41:14 +0200
Alan McKinnon <alan.mckinnon@gmail.com> wrote:

> escape sequences in logs (any kind of logs) are basically noise, they
> make search and grep hard to use.

But then why not implement matters that actually make search and grep
easier to use, see the new subject for example. Currently the logs
aren't search and grep compatible because you have no indication where
the last error is and which process has output that; and changing
escape sequences won't do anything about that, this isn't an argument.

> They also make the log impossible to
> read properly if your terminal type is not the same as what was in
> effect when the log was created.

Haven't experienced this, can you give me two attachments from
Bugzilla where at least one of both will display incorrectly for me?

It's easy to say, but I bet it is extremely hard to find; if I can't
find them, they must be very rare. Can you find them?

> And they are essentially candy. A log
> without escapes that you wish had them is still usable.

Since I have to deal with logs a lot, I'd rather work with the most
usable logs; until subject is implemented, escape codes do help me.

> A log with escapes you wish were absent is impossible to use sanely.

Then why do I never have problems with this? Why not strip them?

> The solution is obvious - default to writing plain text to log files
> and give the user an option to enable escapes in the log if {s,}he
> chooses to have it. This does mean you can't use tricks with tee.

What are you trying to solve here? This is not about the users; from
their perspective, I can only hope that the functionality will stay the
same as they don't have a problem with it, some maintainers do...
 
> I *do* like colorized text on my terminal, but I do believe we ought
> to keep defaults sane - the minimum that could possibly work.
> Everything extra should be optional

Sorry, but I'd rather get the most out of build logs; by being
restricted to minimum output, it takes more time to find the relevant
details from the build log.

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  : TomWij@gentoo.org
GPG Public Key  : 6D34E57D
GPG Fingerprint : C165 AF18 AB4C 400B C3D2  ABF0 95B2 1FCD 6D34 E57D

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

  parent reply	other threads:[~2013-09-03 21:16 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130903231611.0c638652@TOMWIJ-GENTOO \
    --to=tomwij@gentoo.org \
    --cc=alan.mckinnon@gmail.com \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox