Επεξεργασία

Κοινή χρήση μέσω


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.

public enum class ProcessModelLogLevel
public enum ProcessModelLogLevel
type ProcessModelLogLevel = 
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.


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

// Set the LogLevel property to ProcessModelLogLevel.All.
processModelSection.LogLevel = ProcessModelLogLevel.All;
' Get the current LogLevel property value.
   Dim comLogLevel As ProcessModelLogLevel = _
   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

See also