Not sure exactly what you mean, but currently you can only enable logging
programmatically with MsiEnableLog and then calling MsiInstallProduct
yourself. There is no API to set logging during the install, if that's what
you mean. MSI 4.0 will have property table entries to allow per-MSI
logging. The current logging policy in the registry logs all MSI activiity.

Signature
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280
> how do acheive logging programatically?
>> msiexec /i <path to your msi file> /l*v <path to a text log file>
[quoted text clipped - 6 lines]
>>>
>>> Bala