Re: emerge log time range
Jason <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Sure, though unfortunately it's not the standard format. Every line starts with the date in seconds since epoch. I'm not sure there's a good way to limit it to only the specified time range, but anything that close to and not less than would certainly be better. Here is an example of one emerge from the logs. 1170280647: Started emerge on: Jan 31, 2007 16:57:27 1170280647: *** emerge --ask --update --verbose pam 1170280651: >>> emerge (1 of 1) sys-libs/pam-0.78-r5 to / 1170280651: === (1 of 1) Cleaning (sys-libs/pam-0.78-r5::/usr/portage/sys-libs/pam/pam-0.78-r5.ebuild) 1170280652: === (1 of 1) Compiling/Merging (sys-libs/pam-0.78-r5::/usr/portage/sys-libs/pam/pam-0.78-r5.ebuild) 1170280661: *** terminating. On 2/4/07, Bjorn L. <[email protected]> wrote: > > > MrC wrote: > > > The emerge script appears to search for the day selected via --range > > (default yesterday), regardless of hour, etc. > > > > You can see this in the script: > > > > /usr/share/logwatch/scripts/logfiles/emerge/applydate > > > > as the TimeFilter is looking for dates matching "%b %d, %Y", which is Mon > > Day, Year. > > Jason, > > Do you have an example of what a log entry looks like? If it has the > hours:minutes:seconds, and it's in a readily obtainable format, it > should be easy to change. > _______________________________________________ > Logwatch-Devel mailing list > [email protected] > http://www2.list.logwatch.org:81/mailman/listinfo/logwatch-devel >