Determines what to do when writing to the log file and there is less free disk space available than specified by the ReserveDiskSpace property.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
Property ValueType: Microsoft.VisualBasic.Logging.DiskSpaceExhaustedOption
DiskSpaceExhaustedOption. Determines what to do when attempting to write to the log file and there is less free disk space available than specified by the ReserveDiskSpace property, or if the log file size is greater than what the MaxFileSize property allows. The default value is DiscardMessages.
When the DiscardMessages, the log messages are silently discarded if there is not enough reserved disk space. This is the default behavior, and it prevents simple applications from failing if the disk gets too full.property is set to
More robust applications can set the ThrowException, and add Try...Catch blocks around all code that writes to the log.property to
Available since 2.0