다음을 통해 공유


ProcessModelSection.LogLevel 속성

정의

이벤트 로그에 기록할 이벤트 유형을 나타내는 값을 가져오거나 설정합니다.

public:
 property System::Web::Configuration::ProcessModelLogLevel LogLevel { System::Web::Configuration::ProcessModelLogLevel get(); void set(System::Web::Configuration::ProcessModelLogLevel value); };
[System.Configuration.ConfigurationProperty("logLevel", DefaultValue=System.Web.Configuration.ProcessModelLogLevel.Errors)]
public System.Web.Configuration.ProcessModelLogLevel LogLevel { get; set; }
[<System.Configuration.ConfigurationProperty("logLevel", DefaultValue=System.Web.Configuration.ProcessModelLogLevel.Errors)>]
member this.LogLevel : System.Web.Configuration.ProcessModelLogLevel with get, set
Public Property LogLevel As ProcessModelLogLevel

속성 값

값 중 ProcessModelLogLevel 하나입니다. 기본값은 Errors입니다.

특성

예제

다음 코드 예제에서는 속성에 액세스 하는 방법을 보여 있습니다 LogLevel .


// 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

설명

이 속성을 올바르게 사용하면 시스템에서 기록할 수 있는 오류를 필터링할 수 있습니다. 애플리케이션의 오작동 또는 병목 현상을 파악한 후에는 관심 있는 오류 범위를 좁히는 전략을 고안할 수 있습니다.

적용 대상

추가 정보