ProcessModelSection.LogLevel Property

 

Gets or sets a value indicating the event types to be logged to the event log.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

<ConfigurationPropertyAttribute("logLevel", DefaultValue := ProcessModelLogLevel.Errors)>
Public Property LogLevel As ProcessModelLogLevel

Property Value

Type: System.Web.Configuration.ProcessModelLogLevel

One of the ProcessModelLogLevel values. The default value is Errors.

By using this property correctly, you can filter the errors the system can log. After you have an idea of the application's malfunctions or bottlenecks, you might want to devise a strategy that narrows the range of errors you are interested in.

The following code example shows how to access the LogLevel property.

' Get the current LogLevel property value.
   Dim comLogLevel As ProcessModelLogLevel = _
   processModelSection.LogLevel

' Set the LogLevel property to ProcessModelLogLevel.All.
processModelSection.LogLevel = ProcessModelLogLevel.All

.NET Framework
Available since 2.0
Return to top
Show: