[Rpm-maint] Logging rpm installation logs to file

viren.sharma at tcs.com viren.sharma at tcs.com
Thu Jan 10 14:09:57 UTC 2008


Thanks Panu,

It worked fine.

Can I get this scriptlet execution output in some buffer so that I can 
print this information in a formatted way?
I am doing something like:
<File-name> <Function-name> <Date-time> <Scriptlet-output in a buffer>

I will be able to print this in my already open log file if I get this 
scriptlet execution oultput in some buffer.

- - - 
Thanks
Virendra Sharma




Panu Matilainen <pmatilai at redhat.com> 
01/08/2008 01:13 PM

To
viren.sharma at tcs.com
cc
rpm-maint at lists.rpm.org
Subject
Re: [Rpm-maint] Logging rpm installation logs to file






On Mon, 7 Jan 2008, viren.sharma at tcs.com wrote:

> Hi Panu,
>
> With the change you suggested the error is resolved but 
rpmtsSetScriptFd()
> is still not logging the data to file.
>
> LogFile.txt is created but it is empty :-(

Mm.. yeah, indeed by default you get /dev/null dupped to your log :)
Add rpmIncreaseVerbosity() call somewhere before executing the 
transaction, that should activate the logging.

                 - Panu -

ForwardSourceID:NT0000E7CE 
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rpm.org/pipermail/rpm-maint/attachments/20080110/2a1f87c7/attachment-0001.htm 


More information about the Rpm-maint mailing list