Share via


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 値のいずれか 1 つ。 既定値は 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

注釈

このプロパティを正しく使用することで、システムがログに記録できるエラーをフィルター処理できます。 アプリケーションの誤動作やボトルネックを把握したら、関心のあるエラーの範囲を絞り込む戦略を考案することをお勧めします。

適用対象

こちらもご覧ください