[Yum-devel] [PATCH] use yum tag when logging to syslog

seth vidal skvidal at linux.duke.edu
Sun Dec 17 21:02:06 UTC 2006


On Sun, 2006-12-17 at 15:04 -0500, James Bowes wrote:
> 
> Terje Rosten wrote:
> > Current logging to syslog appear as
> > 
> >  Dec 12 08:09:38 hostname Updated: openssh-server.x86_64 4.3p2-14.fc6
> > 
> > It't nice, however it's common to add a tag, in this case yum, like
> > this:
> > 
> >  Dec 12 08:09:38 hostname yum: Updated: openssh-server.x86_64 4.3p2-14.fc6
> > 
> > This way it's also very easy for e.g. logwatch to create a nice daily
> > yum report.
> 
> 
> Looks good to me. Definitely makes the syslog output more useful, too.
> 

one minor nit.

it might be useful to allow that field to look like:

Dec 12 08:09:38 hostname yum(yum-cli): Updated: openssh-server.x86_64
4.3p2-14.fc6
Dec 12 08:09:38 hostname yum(yumex): Updated: openssh-server.x86_64
4.3p2-14.fc6
Dec 12 08:09:38 hostname yum(pirut): Updated: openssh-server.x86_64
4.3p2-14.fc6
Dec 12 08:09:38 hostname yum(yum-updatesd): Updated:
openssh-server.x86_64 4.3p2-14.fc6

so you can distinguish how the update/install/etc was performed.

-sv





More information about the Yum-devel mailing list