ILoggingTarget.LogEvent Method

Definition

Overloads

LogEvent(String)

Logs an event with the specified name.

LogEvent(String, LoggingFields)

Logs an event with the specified name and fields.

LogEvent(String, LoggingFields, LoggingLevel)

Logs an event with the specified name, fields, and level.

LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions)

Logs an event with the specified name, fields, level, and options.

LogEvent(String)

Logs an event with the specified name.

public:
 void LogEvent(Platform::String ^ eventName);
/// [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)

Parameters

eventName
String

Platform::String

winrt::hstring

The name for this event.

Attributes

See also

Applies to

LogEvent(String, LoggingFields)

Logs an event with the specified name and fields.

public:
 void LogEvent(Platform::String ^ eventName, LoggingFields ^ fields);
/// [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)

Parameters

eventName
String

Platform::String

winrt::hstring

The name for this event.

fields
LoggingFields

The fields for this event. May be null.

Attributes

See also

Applies to

LogEvent(String, LoggingFields, LoggingLevel)

Logs an event with the specified name, fields, and level.

public:
 void LogEvent(Platform::String ^ eventName, LoggingFields ^ fields, LoggingLevel level);
/// [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)

Parameters

eventName
String

Platform::String

winrt::hstring

The name for this event.

fields
LoggingFields

The fields for this event. May be null.

level
LoggingLevel

The level of detail for this event.

Attributes

See also

Applies to

LogEvent(String, LoggingFields, LoggingLevel, LoggingOptions)

Logs an event with the specified name, fields, level, and options.

public:
 void LogEvent(Platform::String ^ eventName, LoggingFields ^ fields, LoggingLevel level, LoggingOptions ^ options);
/// [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)

Parameters

eventName
String

Platform::String

winrt::hstring

The name for this event.

fields
LoggingFields

The fields for this event. May be null.

level
LoggingLevel

The level of detail for this event.

options
LoggingOptions

The options for this event. Pass null to use the default options. The options are for advanced scenarios. The default values are designed to work well for most events.

Attributes

See also

Applies to