ProcessModelLogLevel Enum

Definition

Specifies the event types to be logged to the event log.

This API supports the product infrastructure and is not intended to be used directly from your code.

C#
public enum ProcessModelLogLevel
Inheritance
ProcessModelLogLevel

Fields

Name Value Description
None 0

Specifies that no events are logged. You might want to use this option for tested and deployed applications.

All 1

Specifies that all process events are logged. Use this option when you want to explore the possible errors an application might issue, without any filtering. This option is useful during the building and debugging phase.

Errors 2

Specifies that only unexpected shutdowns, memory-limit shutdowns, and deadlock shutdowns are logged. This is the default value.

Examples

The following example shows how to set the ProcessModelSection.LogLevel property.

C#

// Get the current LogLevel property value.
ProcessModelLogLevel comLogLevel = 
    processModelSection.LogLevel;

// Set the LogLevel property to ProcessModelLogLevel.All.
processModelSection.LogLevel = ProcessModelLogLevel.All;

Remarks

The ProcessModelLogLevel enumeration contains the values to use when you set the ProcessModelSection.LogLevel property.

The default value is Errors.

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also