|
#1
|
|||
|
|||
Disable writing to the Windows Event Log
Hi,
I am wondering if there is a way to 'disable' or 'turn off' the logging to the Windows event log from VBP? This is causing an error on our build machine as when the log file isn't available, VBP logs so many errors to the Event log the Event log fills up. This then causes other applications to crash when they cannot write to the Event log. Increasing the size of the log only delays the crashes. We are using VBP 5.7. Thanks, Sheryl |
#2
|
|||
|
|||
Visual Build does not log build log entries to the Windows Event Log - the errors you are encountering must be errors from the actual Visual Build application.
Note that support is no longer available for Visual Build v.5 (and earlier)... Perhaps removing and reinstalling Visual Build would help. Another option might be change the settings to "Overwrite as needed" on the Windows log that is overflowing (in the Event Viewer, right-click on the particular log, Properties, then as required)... |
#3
|
|||
|
|||
Hi,
Thanks for the reply. True, it doesn't log build errors to the Event Log, VBP logs to the Event log if VBP can't find the log file specified in the build script. From the VPB help file [search help on "Event Log" and select the entry Logging] Note: If the log file cannot be written to, the error information will be written to the Windows Event Viewer Application tab (available in Administrative Tools). I agree this is nice, but it would be nicer if: 1. This could be turned off 2. It only logged one error per build with the message "Further logging errors will not be logged for this build." Any way to 'set' this? Thanks, Sheryl |
#4
|
|||
|
|||
Hi,
Here is a screen capture of the Event log. Thanks for any input. -Sheryl |
#5
|
|||
|
|||
It's not currently possible to disable writing to the Event Viewer when file logging fails. For a future release, we'll consider adding that capability and/or an option to limit the amount of events written in that circumstance.
If you can't prevent file logging from failing, you may be able to detect it did/will fail and disable file logging and/or abort the build. |
|
|