stonkers
23rd May 2007 14:43 UTC
Good deployment logging strategies
Any strategy on turning on and off logging (i.e. it's got to be turned on in a section). So if I want to turn it on in .oninit, then have it on through the uninstall and any sections, do I have to turn it off at the end of each and then on at the beginning of the next (or will that delete the log file each time)?
Thanks,
Eric <><
Afrow UK
23rd May 2007 14:46 UTC
When you speak of logging, are you talking about using the dumplog function or the logging special NSIS build?
Stu
stonkers
23rd May 2007 19:14 UTC
The logging special NSIS build. Never heard of the dumplog function, what is that?
stonkers
23rd May 2007 19:31 UTC
Nevermind the "dumplog" function. It looks AWESOME, but we're doing all of our deployments silent (I wrote a website to deploy everything we do).
Afrow UK
23rd May 2007 19:59 UTC
In which case, no you cannot turn logging on and off. All I can suggest is that you insert markers into the log file using LogText and then read it for the bits you want. Would be a lot of work though.
Stu
stonkers
30th May 2007 19:22 UTC
We've figured it out. We just wait until the log is complete and then copy the log to a new filename and join it with all of the other logs that we created along the way. Works like a charm. Thanks!