Compartilhar via


LoggingChannel.LogEvent Método

Definição

Sobrecargas

LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions)

Registra um evento com o nome, os campos, o nível e as opções especificados.

LogEvent(String, LoggingFields, LoggingLevel)

Registra um evento com o nome, os campos e o nível especificados.

LogEvent(String, LoggingFields)

Registra um evento com o nome e os campos especificados.

LogEvent(String)

Registra um evento com o nome especificado.

LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions)

Registra um evento com o nome, os campos, o nível e as opções especificados.

public:
 virtual void LogEvent(Platform::String ^ eventName, LoggingFields ^ fields, LoggingLevel level, LoggingOptions ^ options) = LogEvent;
/// [Windows.Foundation.Metadata.Overload("LogEventWithFieldsAndOptions")]
void LogEvent(winrt::hstring const& eventName, LoggingFields const& fields, LoggingLevel const& level, LoggingOptions const& options);
[Windows.Foundation.Metadata.Overload("LogEventWithFieldsAndOptions")]
public void LogEvent(string eventName, LoggingFields fields, LoggingLevel level, LoggingOptions options);
function logEvent(eventName, fields, level, options)
Public Sub LogEvent (eventName As String, fields As LoggingFields, level As LoggingLevel, options As LoggingOptions)

Parâmetros

eventName
String

Platform::String

winrt::hstring

O nome desse evento.

fields
LoggingFields

Os campos para esse evento. Pode ser nulo.

level
LoggingLevel

O nível de detalhes para esse evento.

options
LoggingOptions

As opções para esse evento. Passe nulo para usar as opções padrão. As opções são para cenários avançados. Os valores padrão são projetados para funcionar bem para a maioria dos eventos.

Implementações

M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(System.String,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel,Windows.Foundation.Diagnostics.LoggingOptions) M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(Platform::String,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel,Windows.Foundation.Diagnostics.LoggingOptions) M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(winrt::hstring,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel,Windows.Foundation.Diagnostics.LoggingOptions)
Atributos

Confira também

Aplica-se a

LogEvent(String, LoggingFields, LoggingLevel)

Registra um evento com o nome, os campos e o nível especificados.

public:
 virtual void LogEvent(Platform::String ^ eventName, LoggingFields ^ fields, LoggingLevel level) = LogEvent;
/// [Windows.Foundation.Metadata.Overload("LogEventWithFieldsAndLevel")]
void LogEvent(winrt::hstring const& eventName, LoggingFields const& fields, LoggingLevel const& level);
[Windows.Foundation.Metadata.Overload("LogEventWithFieldsAndLevel")]
public void LogEvent(string eventName, LoggingFields fields, LoggingLevel level);
function logEvent(eventName, fields, level)
Public Sub LogEvent (eventName As String, fields As LoggingFields, level As LoggingLevel)

Parâmetros

eventName
String

Platform::String

winrt::hstring

O nome desse evento.

fields
LoggingFields

Os campos para esse evento. Pode ser nulo.

level
LoggingLevel

O nível de detalhes para esse evento.

Implementações

M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(System.String,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel) M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(Platform::String,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel) M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(winrt::hstring,Windows.Foundation.Diagnostics.LoggingFields,Windows.Foundation.Diagnostics.LoggingLevel)
Atributos

Confira também

Aplica-se a

LogEvent(String, LoggingFields)

Registra um evento com o nome e os campos especificados.

public:
 virtual void LogEvent(Platform::String ^ eventName, LoggingFields ^ fields) = LogEvent;
/// [Windows.Foundation.Metadata.Overload("LogEventWithFields")]
void LogEvent(winrt::hstring const& eventName, LoggingFields const& fields);
[Windows.Foundation.Metadata.Overload("LogEventWithFields")]
public void LogEvent(string eventName, LoggingFields fields);
function logEvent(eventName, fields)
Public Sub LogEvent (eventName As String, fields As LoggingFields)

Parâmetros

eventName
String

Platform::String

winrt::hstring

O nome desse evento.

fields
LoggingFields

Os campos para esse evento. Pode ser nulo.

Implementações

M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(System.String,Windows.Foundation.Diagnostics.LoggingFields) M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(Platform::String,Windows.Foundation.Diagnostics.LoggingFields) M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(winrt::hstring,Windows.Foundation.Diagnostics.LoggingFields)
Atributos

Confira também

Aplica-se a

LogEvent(String)

Registra um evento com o nome especificado.

public:
 virtual void LogEvent(Platform::String ^ eventName) = LogEvent;
/// [Windows.Foundation.Metadata.Overload("LogEvent")]
void LogEvent(winrt::hstring const& eventName);
[Windows.Foundation.Metadata.Overload("LogEvent")]
public void LogEvent(string eventName);
function logEvent(eventName)
Public Sub LogEvent (eventName As String)

Parâmetros

eventName
String

Platform::String

winrt::hstring

O nome desse evento.

Implementações

M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(System.String) M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(Platform::String) M:Windows.Foundation.Diagnostics.ILoggingTarget.LogEvent(winrt::hstring)
Atributos

Confira também

Aplica-se a