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)

2013-09-04 Thread Kent Fredric
On 4 September 2013 08:11, Tom Wijsman tom...@gentoo.org wrote: And then I asked the questions that I'd like to see answered: Why do they not belong there? What do people have to do who want them? If anyone needs a poster child for the sort of escape sequence outputs that most definitely

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)

2013-09-04 Thread Michał Górny
Dnia 2013-09-03, o godz. 18:57:12 Walter Dnes waltd...@waltdnes.org napisał(a): On Tue, Sep 03, 2013 at 10:15:39PM +0200, Tom Wijsman wrote That is not what this is about, this is about having escape sequences in build logs obtained from Bugzilla; because, they aid in skimming through

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)

2013-09-04 Thread Tom Wijsman
On Wed, 4 Sep 2013 18:03:14 +1200 Kent Fredric kentfred...@gmail.com wrote: On 4 September 2013 08:11, Tom Wijsman tom...@gentoo.org wrote: And then I asked the questions that I'd like to see answered: Why do they not belong there? What do people have to do who want them? If

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)

2013-09-04 Thread Tom Wijsman
On Wed, 4 Sep 2013 09:17:11 +0200 Michał Górny mgo...@gentoo.org wrote: Dnia 2013-09-03, o godz. 18:57:12 Walter Dnes waltd...@waltdnes.org napisał(a): On Tue, Sep 03, 2013 at 10:15:39PM +0200, Tom Wijsman wrote That is not what this is about, this is about having escape sequences

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)

2013-09-04 Thread Michał Górny
Dnia 2013-09-04, o godz. 11:24:22 Tom Wijsman tom...@gentoo.org napisał(a): On Wed, 4 Sep 2013 09:17:11 +0200 Michał Górny mgo...@gentoo.org wrote: Dnia 2013-09-03, o godz. 18:57:12 Walter Dnes waltd...@waltdnes.org napisał(a): On Tue, Sep 03, 2013 at 10:15:39PM +0200, Tom Wijsman

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)

2013-09-04 Thread Tom Wijsman
On Wed, 4 Sep 2013 11:59:37 +0200 Michał Górny mgo...@gentoo.org wrote: And how are you going to implement this? I doubt that fd/vt input has any sort of 'writing process id' indicator. Yeah, will require some inspection into how this works and what information we have available; if that

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)

2013-09-04 Thread Kent Fredric
On 4 September 2013 21:59, Michał Górny mgo...@gentoo.org wrote: And how are you going to implement this? I doubt that fd/vt input has any sort of 'writing process id' indicator. In one terminal: cat -vET In another: pgrep -x cat # 199935 ls -la /proc/199935/fd/ dr-x-- 2 kent kent

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)

2013-09-04 Thread Kent Fredric
On 4 September 2013 21:59, Michał Górny mgo...@gentoo.org wrote: And how are you going to implement this? I doubt that fd/vt input has any sort of 'writing process id' indicator. Though granted, my other post is not going to be useful on a line-by-line basis. The obvious easy approach is

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)

2013-09-04 Thread Michał Górny
Dnia 2013-09-04, o godz. 23:45:44 Kent Fredric kentfred...@gmail.com napisał(a): On 4 September 2013 21:59, Michał Górny mgo...@gentoo.org wrote: And how are you going to implement this? I doubt that fd/vt input has any sort of 'writing process id' indicator. Though granted, my

Re: [gentoo-dev] rfc: escape sequences in logs

2013-09-03 Thread Tobias Klausmann
Hi! My two cents for viewing-logs-in-vim (which is a use case for me): $ eix ansiesc * app-vim/ansiesc Available versions: (~)12 Homepage:http://www.vim.org/scripts/script.php?script_id=302 Description: vim plugin: ansi escape sequences concealed, but

Re: [gentoo-dev] rfc: escape sequences in logs

2013-09-03 Thread Diego Elio Pettenò
On Mon, Sep 2, 2013 at 8:21 PM, William Hubbs willi...@gentoo.org wrote: 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

Can we have process names and stdout / stderr indication to more efficiently parse build logs? (was: Re: [gentoo-dev] rfc: escape sequences in logs)

2013-09-03 Thread Ulrich Mueller
On Tue, 3 Sep 2013, Tom Wijsman wrote: On Mon, 2 Sep 2013 14:21:52 -0500 William Hubbs willi...@gentoo.org wrote: 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. They belong there so future display can

Re: [gentoo-dev] rfc: escape sequences in logs

2013-09-03 Thread Ulrich Mueller
On Tue, 3 Sep 2013, Tobias Klausmann wrote: My two cents for viewing-logs-in-vim (which is a use case for me): $ eix ansiesc * app-vim/ansiesc Available versions: (~)12 Homepage:http://www.vim.org/scripts/script.php?script_id=302 Description: vim

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)

2013-09-03 Thread William Hubbs
On Tue, Sep 03, 2013 at 10:25:19AM +0200, Ulrich Mueller wrote: On Tue, 3 Sep 2013, Tom Wijsman wrote: On Mon, 2 Sep 2013 14:21:52 -0500 William Hubbs willi...@gentoo.org wrote: I can see why someone might want to use escape codes for color displays, etc. However, imo, escape codes

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)

2013-09-03 Thread Walter Dnes
On Tue, Sep 03, 2013 at 10:25:19AM +0200, Ulrich Mueller wrote Escape sequences have been designed for communication with peripheral devices, not for markup or as a storage format. Also future colorful display generally won't be portabe because escape sequences depend on the setting of the

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)

2013-09-03 Thread Tom Wijsman
On Tue, 3 Sep 2013 15:43:44 -0400 Walter Dnes waltd...@waltdnes.org wrote: Similar to... USE=foo bar emerge blah blah blah ...can the average user do something like... TERM=dumb emerge blah blah blah That sounds like a very rare occasion, from all the bugs I have dealt with I have

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)

2013-09-03 Thread Walter Dnes
On Tue, Sep 03, 2013 at 10:15:39PM +0200, Tom Wijsman wrote That is not what this is about, this is about having escape sequences in build logs obtained from Bugzilla; because, they aid in skimming through logs (until we implement the feature I asked for in subject). The road to binary

[gentoo-dev] rfc: escape sequences in logs

2013-09-02 Thread William Hubbs
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 willi...@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 u...@gentoo.org napisał(a):

Re: [gentoo-dev] rfc: escape sequences in logs

2013-09-02 Thread Michał Górny
Dnia 2013-09-02, o godz. 14:21:52 William Hubbs willi...@gentoo.org napisał(a): 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 willi...@gentoo.org napisał(a): On Sat, Aug 31, 2013 at 10:48:32PM +0200, Michał Górny wrote:

Re: [gentoo-dev] rfc: escape sequences in logs

2013-09-02 Thread William Hubbs
On Mon, Sep 02, 2013 at 09:41:28PM +0200, Michał Górny wrote: Dnia 2013-09-02, o godz. 14:21:52 William Hubbs willi...@gentoo.org napisał(a): 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 willi...@gentoo.org napisał(a):

Re: [gentoo-dev] rfc: escape sequences in logs

2013-09-02 Thread Ulrich Mueller
On Mon, 2 Sep 2013, William Hubbs wrote: 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

Re: [gentoo-dev] rfc: escape sequences in logs

2013-09-02 Thread Kent Fredric
On 3 September 2013 09:22, Ulrich Mueller u...@gentoo.org wrote: I'd consider any tool as broken if it outputs escape sequences when the output doesn't go to a terminal. (Unless such output was explicitly asked for.) However, what about when output is going to a terminal *and* a log file?

Can we have process names and stdout / stderr indication to more efficiently parse build logs? (was: Re: [gentoo-dev] rfc: escape sequences in logs)

2013-09-02 Thread Tom Wijsman
On Mon, 2 Sep 2013 14:21:52 -0500 William Hubbs willi...@gentoo.org wrote: 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. They belong there so future display can remain colorful. Why do they not belong

Re: [gentoo-dev] rfc: escape sequences in logs

2013-09-02 Thread Zac Medico
On 09/02/2013 01:29 PM, William Hubbs wrote: On Mon, Sep 02, 2013 at 09:41:28PM +0200, Michał Górny wrote: Dnia 2013-09-02, o godz. 14:21:52 William Hubbs willi...@gentoo.org napisał(a): On Mon, Sep 02, 2013 at 01:33:19PM +0200, Michał Górny wrote: Dnia 2013-09-01, o godz. 16:49:34 William

Re: [gentoo-dev] rfc: escape sequences in logs

2013-09-02 Thread Richard Yao
On 09/02/2013 03:21 PM, William Hubbs wrote: 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

Re: [gentoo-dev] rfc: escape sequences in logs

2013-09-02 Thread Kent Fredric
On 3 September 2013 16:17, Richard Yao r...@gentoo.org wrote: I admit that it is annoying to view them in a web browser where the escape characters are not parsed, but that is easily resolved at the terminal You could plausibly also have a filter in bugzilla that detects escape codes in the