Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Converting time formats
Date: Sun, 29 May 2011 13:48:39
Message-Id: 201105291447.02803.peter@humphrey.ukfsn.org
In Reply to: Re: [gentoo-user] Converting time formats by William Kenworthy
1 On Sunday 29 May 2011 01:48:17 William Kenworthy wrote:
2
3 > As well as your other replies, check out ccze
4
5 [...]
6
7 > Pass your log through it for nicely coloured text (words like "alarm"
8 > and "error" are bright red to stand out) as well as converting date
9 > epoch on the fly, leaving it in context.
10
11 That looked interesting, so I tried it. I got the following from "cat
12 /var/log/emerge.log | ccze -C | tail" (sorry about the line wraps, which for
13 some reason I can't switch off at the moment in kmail). Not only did it not
14 convert the timestamps; it overwrote my command. I did get colours though.
15
16 1306665698: *** exiting unsuccessfully with status 'None'. g/emerge.log |
17 ccze -C | tail
18 1306665698: *** terminating.
19 1306675942: Started emerge on: May 29, 2011 14:32:22
20 1306675942: *** emerge --jobs --buildpkg --keep-going --verbose --nospinner
21 --with-bdeps --ask
22 ccze
23 1306675947: >>> emerge (1 of 1) app-admin/ccze-0.2.1-r2 to /
24 1306675947: === (1 of 1) Cleaning (app-admin/ccze-0.2.1-
25 r2::/usr/portage/app-admin/ccze/ccze-0.
26 2.1-r2.ebuild)
27 1306675952: === (1 of 1) Compiling/Packaging (app-admin/ccze-0.2.1-
28 r2::/usr/portage/app-admin/c
29 cze/ccze-0.2.1-r2.ebuild)
30 1306675965: === (1 of 1) Merging (app-admin/ccze-0.2.1-
31 r2::/usr/portage/app-admin/ccze/ccze-0.2
32 .1-r2.ebuild)
33 1306675968: >>> AUTOCLEAN: app-admin/ccze:0
34 1306675969: === (1 of 1) Updating world file (app-admin/ccze-0.2.1-r2)
35 1306675969: === (1 of 1) Post-Build Cleaning (app-admin/ccze-0.2.1-
36 r2::/usr/portage/app-admin/c
37 cze/ccze-0.2.1-r2.ebuild)
38 1306675969: ::: completed emerge (1 of 1) app-admin/ccze-0.2.1-r2 to /
39 1306675969: *** Finished. Cleaning up...
40 1306675970: *** exiting successfully.
41 1306675970: *** terminating.
42
43 (Something is weird on this box. I posted recently about lockups in flash,
44 but I now get them at random times even when flash is not running.)
45
46 --
47 Rgds
48 Peter