Gentoo Archives: gentoo-user

From: Etaoin Shrdlu <shrdlu@×××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Time format in log files
Date: Mon, 28 Jan 2008 15:03:07
Message-Id: 200801281615.10056.shrdlu@unlimitedmail.org
In Reply to: Re: [gentoo-user] Time format in log files by Peter Humphrey
1 On Monday 28 January 2008, Peter Humphrey wrote:
2
3 > $ grep completed /var/log/emerge.log | ccze -C gives lines like this:
4 >
5 > 1197637365: ::: completed emerge (57 of 207) app-doc/xorg-docs-1.4-r1
6 > to /
7 >
8 > and then the whole lot disappears at the end of the listing. I can't
9 > see anything in the manual to help (missing plugins or anything), so
10 > I'll have to abandon this one. Thanks anyway.
11
12 The solution Mick previously found seems to work just fine even
13 with /var/log/emerge.log:
14
15 # grep completed /var/log/emerge.log | perl -pe 's/(\d+)/localtime($1)/e'
16 Tue Nov 2 16:57:54 2004: ::: completed emerge (1 of 1)
17 sys-apps/portage-2.0.51-r2 to /
18 Tue Nov 2 16:58:54 2004: ::: completed emerge (1 of 1)
19 sys-apps/portage-2.0.51-r2 to /
20 ...
21 (output omitted)
22 ...
23 Mon Jan 28 14:14:44 2008: ::: completed emerge (6 of 7)
24 x11-libs/wxGTK-2.6.4.0-r3 to /
25 Mon Jan 28 14:14:47 2008: ::: completed emerge (7 of 7)
26 app-admin/eselect-wxwidgets-0.7-r1 to /
27 --
28 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Time format in log files Peter Humphrey <peter@××××××××××××××.org>