PDA

View Full Version : Corrupt Log File


cummineg
02-16-2004, 05:20 PM
Hi,

I have project level logging enabled, and the xml log file is being corrupted with the attached .bld file.

Any help would be appreciated.

Thanks,
Greg

kinook
02-16-2004, 05:42 PM
http://www.kinook.com/Forum/showthread.php?threadid=314

http://www.kinook.com/Forum/forumdisplay.php?forumid=15

cummineg
02-16-2004, 07:27 PM
Thank you for the links. I had previously read these links and found my problem to be most related to thread 314, in which the xml file does not get written to until a subsequent logging call. The developer was trying to use a macro that has not yet been expanded. In this case the recommendation is to create the macro in script on startup.

I don't believe this is my problem, but I do see the same error message, and I am not trying to use a project level macro that needs expansion. Certainly something is corrupting the log file, but I can't determine what this is.

The previous post contains the .bld file for examination.

kinook
02-17-2004, 06:31 AM
I did look at your log file, and the same issue seems to apply. The project LOGFILE macro references %WORK_ROOT%, which is not defined at the project level, and the global macro WORK_ROOT gets created by the 'Prepare LocalHost Work Root' step during the build. The WORK_ROOT macro cannot change during the build when using XML logging, or part of log file will get written in one place and the rest somewhere else, resulting in two incomplete XML documents.