ProcessModelLogLevel 列挙型

定義

イベント ログに記録されるイベントの種類を指定します。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

public enum class ProcessModelLogLevel
public enum ProcessModelLogLevel
type ProcessModelLogLevel = 
Public Enum ProcessModelLogLevel
継承
ProcessModelLogLevel

フィールド

All 1

すべてのプロセス イベントのログを記録することを指定します。 アプリケーションが発行する可能性のあるエラーを、フィルター処理なしで確認したい場合は、このオプションを使用します。 このオプションは、構築およびデバッグ フェーズで便利です。

Errors 2

予測不可能なシャットダウン、メモリ不足シャットダウン、およびデッドロック シャットダウンのみ記録されることを指定します。 これが既定値です。

None 0

イベントのログを記録しないことを指定します。 このオプションは、テスト済みおよび展開済みのアプリケーションに使用できます。

ProcessModelSection.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

注釈

ProcessModelLogLevel列挙には、 プロパティを設定するときに使用する値がProcessModelSection.LogLevel含まれています。

既定値は Errors です。

適用対象

こちらもご覧ください