Mailinglist Archive: zypp-devel (9 mails)
| < Previous | Next > |
Re: [zypp-devel] New tool: zypper-log
- From: Dominik Heidler <dheidler@xxxxxxx>
- Date: Mon, 27 Jun 2011 10:30:34 +0200
- Message-id: <4E083FAA.3010109@suse.de>
Am 27.06.2011 10:22, schrieb Klaus Kaempf:
You need the pid to query the corresponding logs:
# zypper-log 114866
Reading /var/log/zypper.log ................ DONE
2011-06-15 15:22:55 <1> vogelweide(114866) [zypper] main.cc(main):75
===== Hi, me zypper 1.6.10
2011-06-15 15:22:55 <1> vogelweide(114866) [zypper] main.cc(main):76
===== 'zypper' 'in' 'manedit-1.1.1-10.62.x86_64.rpm' =====
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(_autodetectSystemArchitecture):59 Uname architecture is 'x86_64'
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(_autodetectTextLocale):157 Found LANG=en_US.UTF-8
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(_autodetectTextLocale):164 Default text locale is 'en_US'
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(Impl):272 libzypp: 9.8.1 built Jun 15 2011 11:13:30
2011-06-15 15:22:55 <1> vogelweide(114866) [zypp] IniParser.cc(parse):69
Start parsing /etc/zypp/zypp.conf[g___]
2011-06-15 15:22:55 <1> vogelweide(114866) [zypp]
IniParser.cc(parse):119 Done parsing /etc/zypp/zypp.conf[_eF_]
2011-06-15 15:22:55 <1> vogelweide(114866) [Progress++]
ProgressData.cc(report):86 {#1|/etc/zypp/zypp.conf}END
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(Impl):475 ZConfig singleton created.
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(ZConfig):569 libzypp: 9.8.1 built Jun 15 2011 11:13:30
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(ZConfig):569 satsolver: 0.17.0
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(ZConfig):569 zypp.conf: '/etc/zypp/zypp.conf'
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(ZConfig):569 TextLocale: 'en_US' (en_US)
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(ZConfig):569 SystemArchitecture: 'x86_64' (x86_64)
2011-06-15 15:22:55 <1> vogelweide(114866) [zypper] Zypper.cc(Zypper):76
Zypper instance created.
2011-06-15 15:22:55 <1> vogelweide(114866) [zypper]
media.h(MediaCallbacks):181 Set media callbacks..
2011-06-15 15:22:55 <1> vogelweide(114866) [zypper]
Zypper.cc(processGlobalOptions):320 START
2011-06-15 15:22:55 <5> vogelweide(114866) [Measure]
Measure.cc(Impl):145 START MEASURE(ReadConfig)
2011-06-15 15:22:55 <1> vogelweide(114866) [zypper] Augeas.cc(Augeas):21
Going to read zypper config using Augeas...
.......
--
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örffer
HRB 21284 (AG Nürnberg)
_________________________________________
ドミニク
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
* Dominik Heidler <dheidler@xxxxxxx> [Jun 15. 2011 14:18]:
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.
Way cool !!
# 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
Whats the value of having the pid in the output ?
You need the pid to query the corresponding logs:
# zypper-log 114866
Reading /var/log/zypper.log ................ DONE
2011-06-15 15:22:55 <1> vogelweide(114866) [zypper] main.cc(main):75
===== Hi, me zypper 1.6.10
2011-06-15 15:22:55 <1> vogelweide(114866) [zypper] main.cc(main):76
===== 'zypper' 'in' 'manedit-1.1.1-10.62.x86_64.rpm' =====
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(_autodetectSystemArchitecture):59 Uname architecture is 'x86_64'
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(_autodetectTextLocale):157 Found LANG=en_US.UTF-8
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(_autodetectTextLocale):164 Default text locale is 'en_US'
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(Impl):272 libzypp: 9.8.1 built Jun 15 2011 11:13:30
2011-06-15 15:22:55 <1> vogelweide(114866) [zypp] IniParser.cc(parse):69
Start parsing /etc/zypp/zypp.conf[g___]
2011-06-15 15:22:55 <1> vogelweide(114866) [zypp]
IniParser.cc(parse):119 Done parsing /etc/zypp/zypp.conf[_eF_]
2011-06-15 15:22:55 <1> vogelweide(114866) [Progress++]
ProgressData.cc(report):86 {#1|/etc/zypp/zypp.conf}END
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(Impl):475 ZConfig singleton created.
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(ZConfig):569 libzypp: 9.8.1 built Jun 15 2011 11:13:30
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(ZConfig):569 satsolver: 0.17.0
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(ZConfig):569 zypp.conf: '/etc/zypp/zypp.conf'
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(ZConfig):569 TextLocale: 'en_US' (en_US)
2011-06-15 15:22:55 <1> vogelweide(114866) [zconfig]
ZConfig.cc(ZConfig):569 SystemArchitecture: 'x86_64' (x86_64)
2011-06-15 15:22:55 <1> vogelweide(114866) [zypper] Zypper.cc(Zypper):76
Zypper instance created.
2011-06-15 15:22:55 <1> vogelweide(114866) [zypper]
media.h(MediaCallbacks):181 Set media callbacks..
2011-06-15 15:22:55 <1> vogelweide(114866) [zypper]
Zypper.cc(processGlobalOptions):320 START
2011-06-15 15:22:55 <5> vogelweide(114866) [Measure]
Measure.cc(Impl):145 START MEASURE(ReadConfig)
2011-06-15 15:22:55 <1> vogelweide(114866) [zypper] Augeas.cc(Augeas):21
Going to read zypper config using Augeas...
.......
Klaus
---
SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer,
HRB 16746 (AG Nürnberg)
Maxfeldstraße 5, 90409 Nürnberg, Germany
--
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örffer
HRB 21284 (AG Nürnberg)
_________________________________________
ドミニク
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx
| < Previous | Next > |