Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo Development (http://www.linux-archive.org/gentoo-development/)
-   -   stripping escape sequences from build logs (http://www.linux-archive.org/gentoo-development/699798-stripping-escape-sequences-build-logs.html)

William Hubbs 09-01-2012 10:39 PM

stripping escape sequences from build logs
 
All,

I find the included escape sequences to be annoying when I am reading a
build log.

Is there a way to strip these?

Thanks,

William

Diego Elio Pettenò 09-01-2012 10:41 PM

stripping escape sequences from build logs
 
On 01/09/2012 15:39, William Hubbs wrote:
>
> I find the included escape sequences to be annoying when I am reading a
> build log.
>
> Is there a way to strip these?

I had that problem — you can find my script that does that (as well as
other stuff) at https://github.com/gentoo/tboxanalysis

--
Diego Elio Pettenò — Flameeyes
flameeyes@flameeyes.eu — http://blog.flameeyes.eu/

Michał Górny 09-01-2012 11:08 PM

stripping escape sequences from build logs
 
On Sat, 1 Sep 2012 17:39:13 -0500
William Hubbs <williamh@gentoo.org> wrote:

> All,
>
> I find the included escape sequences to be annoying when I am reading
> a build log.
>
> Is there a way to strip these?

I think the 'easy' way is to view them using 'less'. Not sure if it
will work for you.

--
Best regards,
Michał Górny

Brian Dolbec 09-03-2012 03:43 PM

stripping escape sequences from build logs
 
On Sat, 2012-09-01 at 17:39 -0500, William Hubbs wrote:
> All,
>
> I find the included escape sequences to be annoying when I am reading a
> build log.
>
> Is there a way to strip these?
>
> Thanks,
>
> William
>

Porthole's terminal strips most of them, processes some. It also does
message filtering and highlighting for warnings, errors, and an emerge
process summary. The filtered messages are also double click-able to
bring you to the exact spot in the log. Making it easy to find the
errors. The filtered messages can also be easily configured (well, if
you can do python reg expressions ;). It can load build logs for
viewing, "Actions" ==> "Open Emerge Log" menu items in portholes main
window. It also has dynamic automatic line wrapping, so resizing the
window reformats the viewed text.

P.S. It did message filtering long before portage got the capability.
--
Brian Dolbec <dolsen@gentoo.org>


All times are GMT. The time now is 07:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.