EventLogConfiguration EventLogConfiguration EventLogConfiguration EventLogConfiguration Class

Definition

Contains static information and configuration settings for an event log. Many of the configurations settings were defined by the event provider that created the log.

public ref class EventLogConfiguration : IDisposable
public class EventLogConfiguration : IDisposable
type EventLogConfiguration = class
    interface IDisposable
Public Class EventLogConfiguration
Implements IDisposable
Inheritance
EventLogConfigurationEventLogConfigurationEventLogConfigurationEventLogConfiguration
Implements

Examples

For example code using this class, see How to: Configure and Read Event Log Properties.

Remarks

If a property is changed for this object, call the SaveChanges method to save the changes.

Constructors

EventLogConfiguration(String) EventLogConfiguration(String) EventLogConfiguration(String) EventLogConfiguration(String)

Initializes a new EventLogConfiguration object by specifying the local event log for which to get information and configuration settings.

EventLogConfiguration(String, EventLogSession) EventLogConfiguration(String, EventLogSession) EventLogConfiguration(String, EventLogSession) EventLogConfiguration(String, EventLogSession)

Initializes a new EventLogConfiguration object by specifying the name of the log for which to get information and configuration settings. The log can be on the local computer or a remote computer, based on the event log session specified.

Properties

IsClassicLog IsClassicLog IsClassicLog IsClassicLog

Gets the flag that indicates if the event log is a classic event log. A classic event log is one that has its events defined in a .mc file instead of a manifest (.xml file) used by the event provider.

IsEnabled IsEnabled IsEnabled IsEnabled

Gets or sets a Boolean value that determines whether the event log is enabled or disabled. An enabled log is one in which events can be logged, and a disabled log is one in which events cannot be logged.

LogFilePath LogFilePath LogFilePath LogFilePath

Gets or sets the file directory path to the location of the file where the events are stored for the log.

LogIsolation LogIsolation LogIsolation LogIsolation

Gets an EventLogIsolation value that specifies whether the event log is an application, system, or custom event log.

LogMode LogMode LogMode LogMode

Gets or sets an EventLogMode value that determines how events are handled when the event log becomes full.

LogName LogName LogName LogName

Gets the name of the event log.

LogType LogType LogType LogType

Gets an EventLogType value that determines the type of the event log.

MaximumSizeInBytes MaximumSizeInBytes MaximumSizeInBytes MaximumSizeInBytes

Gets or sets the maximum size, in bytes, that the event log file is allowed to be. When the file reaches this maximum size, it is considered full.

OwningProviderName OwningProviderName OwningProviderName OwningProviderName

Gets the name of the event provider that created this event log.

ProviderBufferSize ProviderBufferSize ProviderBufferSize ProviderBufferSize

Gets the size of the buffer that the event provider uses for publishing events to the log.

ProviderControlGuid ProviderControlGuid ProviderControlGuid ProviderControlGuid

Gets the control globally unique identifier (GUID) for the event log if the log is a debug log. If this log is not a debug log, this value will be null.

ProviderKeywords ProviderKeywords ProviderKeywords ProviderKeywords

Gets or sets keyword mask used by the event provider.

ProviderLatency ProviderLatency ProviderLatency ProviderLatency

Gets the maximum latency time used by the event provider when publishing events to the log.

ProviderLevel ProviderLevel ProviderLevel ProviderLevel

Gets or sets the maximum event level (which defines the severity of the event) that is allowed to be logged in the event log. This value is defined by the event provider.

ProviderMaximumNumberOfBuffers ProviderMaximumNumberOfBuffers ProviderMaximumNumberOfBuffers ProviderMaximumNumberOfBuffers

Gets the maximum number of buffers used by the event provider to publish events to the event log.

ProviderMinimumNumberOfBuffers ProviderMinimumNumberOfBuffers ProviderMinimumNumberOfBuffers ProviderMinimumNumberOfBuffers

Gets the minimum number of buffers used by the event provider to publish events to the event log.

ProviderNames ProviderNames ProviderNames ProviderNames

Gets an enumerable collection of the names of all the event providers that can publish events to this event log.

SecurityDescriptor SecurityDescriptor SecurityDescriptor SecurityDescriptor

Gets or sets the security descriptor of the event log. The security descriptor defines the users and groups of users that can read and write to the event log.

Methods

Dispose() Dispose() Dispose() Dispose()

Releases all the resources used by this object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources used by this object, and optionally releases the managed resources.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SaveChanges() SaveChanges() SaveChanges() SaveChanges()

Saves the configuration settings that

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See Also