Bagikan melalui


ProcessModelLogLevel Enum

Definisi

Menentukan jenis peristiwa yang akan dicatat ke log peristiwa.

API ini mendukung infrastruktur produk dan tidak dimaksudkan untuk digunakan langsung dari kode Anda.

public enum class ProcessModelLogLevel
public enum ProcessModelLogLevel
type ProcessModelLogLevel = 
Public Enum ProcessModelLogLevel
Warisan
ProcessModelLogLevel

Bidang

Nama Nilai Deskripsi
None 0

Menentukan bahwa tidak ada peristiwa yang dicatat. Anda mungkin ingin menggunakan opsi ini untuk aplikasi yang diuji dan disebarkan.

All 1

Menentukan bahwa semua peristiwa proses dicatat. Gunakan opsi ini saat Anda ingin menjelajahi kemungkinan kesalahan yang mungkin dikeluarkan aplikasi, tanpa pemfilteran apa pun. Opsi ini berguna selama fase pembuatan dan penelusuran kesalahan.

Errors 2

Menentukan bahwa hanya pematian tak terduga, matikan batas memori, dan matikan kebuntuan yang dicatat. Ini adalah nilai default.

Contoh

Contoh berikut menunjukkan cara mengatur ProcessModelSection.LogLevel properti.


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

Keterangan

Enumerasi ProcessModelLogLevel berisi nilai yang akan digunakan saat Anda mengatur ProcessModelSection.LogLevel properti.

Nilai defaultnya adalah Errors.

Berlaku untuk

Lihat juga