PDA

View Full Version : How can I send the entire log file from a build?


kinook
06-05-2018, 10:38 AM
The LOGFILE macro can be used to send the build log file (https://kinook.com/VisBuildPro/Manual/buildlogging.htm), but Visual Build caches writing to the log file by default (1 second/1000 messages), so messages logged within the last second might not be included in the attached file. To ensure that the entire log file is sent, you can either flush the cache to disk, disable caching, or pause the build before sending the log file.

1) To force all log output to be flushed to the log file, check the Flush cached output to log file on the More tab of the step.

https://kinook.com/VisBuildPro/Manual/stepfailure.htm


2) To disable log file caching, add a Run Script (https://kinook.com/VisBuildPro/Manual/runscript.htm) action to set these Visual Build application options to 0 (depending on whether text or XML logging is being used):

https://kinook.com/VisBuildPro/Manual/textloggercachemessagesproperty.htm
https://kinook.com/VisBuildPro/Manual/textloggercachesecondsproperty.htm

Application.Options.TextLoggerCacheMessages = 0
Application.Options.TextLoggerCacheSeconds = 0

https://kinook.com/VisBuildPro/Manual/xmlloggercachesecondsproperty.htm
https://kinook.com/VisBuildPro/Manual/xmlloggercachemessagesproperty.htm

Application.Options.XMLLoggerCacheMessages = 0
Application.Options.XMLLoggerCacheSeconds = 0


3) To pause the build, either configure the step that sends the log file to 'Pause 1 seconds before' on the General tab (https://kinook.com/VisBuildPro/Manual/buildrules.htm), or add a Wait (https://kinook.com/VisBuildPro/Manual/waitaction.htm) step to wait 1 second.