EventLogSettings Sınıf

Tanım

Ayarları EventLogLogger .Settings for EventLogLogger.

public ref class EventLogSettings
public class EventLogSettings
type EventLogSettings = class
Public Class EventLogSettings
Devralma
EventLogSettings

Oluşturucular

EventLogSettings()

Özellikler

EventLog

Yalnızca birim testi amaçlıdır.For unit testing purposes only.

Filter

Olayları günlük düzeyine göre filtrelemek için kullanılan işlev.The function used to filter events based on the log level.

LogName

Olay günlüğünün adı.Name of the event log. nullVeya belirtilmemişse, "uygulama" varsayılandır.If null or not specified, "Application" is the default.

MachineName

Olay günlüğüne sahip olan makinenin adı.Name of the machine having the event log. nullVeya belirtilmemişse, yerel makine varsayılandır.If null or not specified, local machine is the default.

SourceName

Olay günlüğü kaynağının adı.Name of the event log source. nullVeya belirtilmemişse, "uygulama" varsayılandır.If null or not specified, "Application" is the default.

Yöntemler

Equals(Object)

Belirtilen nesnenin geçerli nesneye eşit olup olmadığını belirler.Determines whether the specified object is equal to the current object.

(Devralındığı yer: Object)
GetHashCode()

Varsayılan karma işlevi olarak işlev görür.Serves as the default hash function.

(Devralındığı yer: Object)
GetType()

TypeGeçerli örneği alır.Gets the Type of the current instance.

(Devralındığı yer: Object)
MemberwiseClone()

Geçerli bir basit kopyasını oluşturur Object .Creates a shallow copy of the current Object.

(Devralındığı yer: Object)
ToString()

Geçerli nesneyi temsil eden dizeyi döndürür.Returns a string that represents the current object.

(Devralındığı yer: Object)

Şunlara uygulanır