Share via


LoggingChannel.LogEvent Methode

Definition

Überlädt

LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions)

Protokolliert ein Ereignis mit dem angegebenen Namen, den angegebenen Feldern, der angegebenen Ebene und den angegebenen Optionen.

LogEvent(String, LoggingFields, LoggingLevel)

Protokolliert ein Ereignis mit dem angegebenen Namen, den angegebenen Feldern und der angegebenen Ebene.

LogEvent(String, LoggingFields)

Protokolliert ein Ereignis mit dem angegebenen Namen und den angegebenen Feldern.

LogEvent(String)

Protokolliert ein Ereignis mit dem angegebenen Namen.

LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions)

Protokolliert ein Ereignis mit dem angegebenen Namen, den angegebenen Feldern, der angegebenen Ebene und den angegebenen Optionen.

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)

Parameter

eventName
String

Platform::String

winrt::hstring

Der Name für dieses Ereignis.

fields
LoggingFields

Die Felder für dieses Ereignis. Kann NULL sein.

level
LoggingLevel

Die Detailebene für dieses Ereignis.

options
LoggingOptions

Die Optionen für dieses Ereignis. Übergeben Sie NULL , um die Standardoptionen zu verwenden. Die Optionen gelten für erweiterte Szenarien. Die Standardwerte sind für die meisten Ereignisse geeignet.

Implementiert

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)
Attribute

Weitere Informationen

Gilt für:

LogEvent(String, LoggingFields, LoggingLevel)

Protokolliert ein Ereignis mit dem angegebenen Namen, den angegebenen Feldern und der angegebenen Ebene.

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)

Parameter

eventName
String

Platform::String

winrt::hstring

Der Name für dieses Ereignis.

fields
LoggingFields

Die Felder für dieses Ereignis. Kann NULL sein.

level
LoggingLevel

Die Detailebene für dieses Ereignis.

Implementiert

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)
Attribute

Weitere Informationen

Gilt für:

LogEvent(String, LoggingFields)

Protokolliert ein Ereignis mit dem angegebenen Namen und den angegebenen Feldern.

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)

Parameter

eventName
String

Platform::String

winrt::hstring

Der Name für dieses Ereignis.

fields
LoggingFields

Die Felder für dieses Ereignis. Kann NULL sein.

Implementiert

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)
Attribute

Weitere Informationen

Gilt für:

LogEvent(String)

Protokolliert ein Ereignis mit dem angegebenen Namen.

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)

Parameter

eventName
String

Platform::String

winrt::hstring

Der Name für dieses Ereignis.

Implementiert

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

Weitere Informationen

Gilt für: