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)

public ProcessModelLogLevel LogLevel { get; set; }
/** @property */
public ProcessModelLogLevel get_LogLevel ()

/** @property */
public void set_LogLevel (ProcessModelLogLevel value)

public function get LogLevel () : ProcessModelLogLevel

public function set LogLevel (value : ProcessModelLogLevel)

Not applicable.

Property Value

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.
ProcessModelLogLevel comLogLevel = 

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions