Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Disable writing to the Windows Event Log (https://www.kinook.com/Forum/showthread.php?t=2772)

smckeown 07-06-2007 01:45 PM

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

kevina 07-06-2007 08:01 PM

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)...

smckeown 07-06-2007 08:19 PM

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

smckeown 07-06-2007 08:24 PM

1 Attachment(s)
Hi,

Here is a screen capture of the Event log.

Thanks for any input.

-Sheryl

kinook 07-08-2007 09:51 PM

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.


All times are GMT -5. The time now is 08:53 PM.


Copyright © 1999-2023 Kinook Software, Inc.