EventLogConfiguration Classe
Definição
Contém informações estáticas e definições de configuração para um log de eventos.Contains static information and configuration settings for an event log. Muitas das definições de configurações foram definidas pelo provedor de eventos que criou o 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
- Herança
-
EventLogConfiguration
- Implementações
Exemplos
Para obter um exemplo de código usando essa classe, consulte como configurar e ler as propriedades do log de eventos.For example code using this class, see How to: Configure and Read Event Log Properties.
Comentários
Se uma propriedade for alterada para esse objeto, chame o SaveChanges método para salvar as alterações.If a property is changed for this object, call the SaveChanges method to save the changes.
Construtores
| EventLogConfiguration(String) |
Inicializa um novo objeto EventLogConfiguration especificando o log de eventos local para o qual obter informações e definições de configuração.Initializes a new EventLogConfiguration object by specifying the local event log for which to get information and configuration settings. |
| EventLogConfiguration(String, EventLogSession) |
Inicializa um novo objeto EventLogConfiguration especificando o nome do log para o qual obter informações e definições de configuração.Initializes a new EventLogConfiguration object by specifying the name of the log for which to get information and configuration settings. O log pode estar no computador local ou em um computador remoto, dependendo da sessão de log de eventos especificada.The log can be on the local computer or a remote computer, based on the event log session specified. |
Propriedades
| IsClassicLog |
Obtém um valor que indica se o log de eventos é um log de eventos clássico.Gets a value that indicates whether the event log is a classic event log. Um log de eventos clássico é aquele que contém seus eventos definidos em um arquivo .mc em vez de um manifesto (arquivo .xml) usado pelo provedor de eventos.A classic event log is one that has its events defined in an .mc file instead of a manifest (.xml file) used by the event provider. |
| IsEnabled |
Obtém ou define um valor que indica se o log de eventos está habilitado ou desabilitado.Gets or sets a value that indicates whether the event log is enabled or disabled. Em um log habilitado é possível registrar eventos, o que não é possível em um log desabilitado.An enabled log is one in which events can be logged, and a disabled log is one in which events cannot be logged. |
| LogFilePath |
Obtém ou define o caminho do diretório de arquivo para o local do arquivo em que os eventos são armazenados para o log.Gets or sets the file directory path to the location of the file where the events are stored for the log. |
| LogIsolation |
Obtém um valor EventLogIsolation que especifica se o log de eventos é um aplicativo, o sistema ou o log de eventos personalizado.Gets an EventLogIsolation value that specifies whether the event log is an application, system, or custom event log. |
| LogMode |
Obtém ou define um valor EventLogMode que determina como os eventos são tratados quando o log de eventos fica cheio.Gets or sets an EventLogMode value that determines how events are handled when the event log becomes full. |
| LogName |
Obtém o nome do log de eventos.Gets the name of the event log. |
| LogType |
Obtém um valor EventLogType que determina o tipo do log de eventos.Gets an EventLogType value that determines the type of the event log. |
| MaximumSizeInBytes |
Obtém ou define o tamanho máximo, em bytes, que o arquivo de log de eventos pode ter.Gets or sets the maximum size, in bytes, that the event log file is allowed to be. Quando o arquivo alcança esse tamanho máximo, ele é considerado cheio.When the file reaches this maximum size, it is considered full. |
| OwningProviderName |
Obtém o nome do provedor de eventos que criou esse log de eventos.Gets the name of the event provider that created this event log. |
| ProviderBufferSize |
Obtém o tamanho do buffer que usa o provedor de eventos para publicar eventos no log.Gets the size of the buffer that the event provider uses for publishing events to the log. |
| ProviderControlGuid |
Obtém o GUID (identificador global exclusivo) do log de eventos se o log for um log de depuração.Gets the control globally unique identifier (GUID) for the event log if the log is a debug log. Se este log não for um log de depuração, esse valor será |
| ProviderKeywords |
Obtém ou define a máscara de palavra-chave usada pelo provedor de eventos.Gets or sets the keyword mask used by the event provider. |
| ProviderLatency |
Obtém o tempo de latência máximo usado pelo provedor de eventos ao publicar eventos no log.Gets the maximum latency time used by the event provider when publishing events to the log. |
| ProviderLevel |
Obtém ou define o nível máximo de evento (que define a gravidade do evento) que tem permissão para ser registrado no log de eventos.Gets or sets the maximum event level (which defines the severity of the event) that is allowed to be logged in the event log. Esse valor é definido pelo provedor de eventos.This value is defined by the event provider. |
| ProviderMaximumNumberOfBuffers |
Obtém o número máximo de buffers usado pelo provedor de eventos ao publicar eventos no log de eventos.Gets the maximum number of buffers used by the event provider to publish events to the event log. |
| ProviderMinimumNumberOfBuffers |
Obtém o número mínimo de buffers usados pelo provedor de eventos ao publicar eventos no log de eventos.Gets the minimum number of buffers used by the event provider to publish events to the event log. |
| ProviderNames |
Obtém uma coleção enumerável dos nomes de todos os provedores de eventos que podem publicar eventos nesse log de eventos.Gets an enumerable collection of the names of all the event providers that can publish events to this event log. |
| SecurityDescriptor |
Obtém ou define o descritor de segurança para o log de eventos.Gets or sets the security descriptor of the event log. O descritor de segurança define os usuários e grupos de usuários que podem ler e gravar no log de eventos.The security descriptor defines the users and groups of users that can read and write to the event log. |
Métodos
| Dispose() |
Libera todos os recursos usados por este objeto.Releases all the resources used by this object. |
| Dispose(Boolean) |
Libera os recursos não gerenciados usados por este objeto e, opcionalmente, libera os recursos gerados.Releases the unmanaged resources used by this object, and optionally releases the managed resources. |
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| SaveChanges() |
Salva as definições de configuração que.Saves the configuration settings that. |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |