[Rpm-maint] Patch: Add support of syslog when installing/removing packages
pmatilai at laiskiainen.org
Fri Mar 4 07:34:42 UTC 2011
On 03/04/2011 09:12 AM, Klaus Kaempf wrote:
> * Ville Skyttä<ville.skytta at iki.fi> [Mar 03. 2011 16:28]:
>> Log arch as well as NVR.
>> So the three last thoughts combined would result in log entries like:
>> Feb 27 11:25:51 $hostname rpm[$pid]: firefox-4.0-0.b12.4.mga1.x86_64
> This still might not be sufficient to make the package non-ambiguous,
> as there's no guarantee that this is really firefox.
You mean as in "somebody might have made a package named firefox but
it's not coming from the vendor"?
> Such guarantees are needed for enterprise scenarios with compliance
> How about making the log line configurable with a format string ?
> Something similar to date(1), with the possibility to add additional
> package indentifiers like vendor, signature, etc.
Sure its possible and even easy technically to make it configurable, it
could be just a header query format string basically. OTOH if it's
configurable it makes it harder to have a parser for the log messages as
you dont know what format it might be in.
Also if talking about enterprise scenarios, you'd probably want to have
any scriptlet failures etc logged too.
- Panu -
More information about the Rpm-maint