This is seriously neat! And it even has a man page! ;)
Let's have a Fate entry so we can hash out default inclusion (or not) and when/into what.
Well done!
Best-F
-----Original Message-----
From: Dominik Heidler
To:
Sent: 6/15/2011 8:18:40 AM
Subject: [zypp-devel] New tool: zypper-log
Hi,
zypper got a now tool called zypper-log (rpm-package also called
zypper-log).
It can read all logfiles (also the rotated ones), you can query all
zypper-runs of a special day, and you can query the complete log of a
run providing the pid.
# zypper-log
Reading /var/log/zypper.log ................ DONE
TIME PID VER CMD
2011-06-09 12:24 7485 1.6.9 zypper in pip
2011-06-09 12:24 7577 1.6.9 zypper in python-pip
2011-06-15 10:09 104050 1.6.9 zypper se foo
2011-06-15 10:15 104587 1.6.9 zypper se argparse
2011-06-15 11:25 112303 1.6.10 zypper rm zypper-log
# zypper-log --help
usage: zypper-log [-h] [-l FILE] [-r N] [-d YYYY-MM-DD] [PID]
This tool helps you to access the zypper logfile. Run this command
without any arguments to get a list of your zypper runs. Provide the
PID-File of a zypper run as an argument to query the log for this run.
positional arguments:
PID Get log for this PID
optional arguments:
-h, --help show this help message and exit
-l FILE Read only this file
-r N Read N rotated logfiles
-d YYYY-MM-DD Get runs for this day
The tool is written in python and requires the argparse-modul (which is
included in python-base >= 2.7).
Dominik
--
Dominik Heidler
Maxfeldstr. 5, D-90409 Nuernberg, Germany
Phone +49-911-74053-141
SUSE LINUX Products GmbH, Nuernberg
GF: Jeff Hawn, Jennifer Guild, Felix Imend(A$B�S(Bffer
HRB 21284 (AG N$B�S(Bnberg)
_________________________________________
$(B$B%I%_%K%/(B
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-devel+help@opensuse.org
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-devel+help@opensuse.org