Dela via


LoggingChannel.LogMessage Method

Definition

Overloads

LogMessage(String)

Logs a message to the current LoggingChannel.

LogMessage(String, LoggingLevel)

Logs a message to the current LoggingChannel with the specified LoggingLevel.

LogMessage(String)

Logs a message to the current LoggingChannel.

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

Parameters

eventString
String

Platform::String

winrt::hstring

The message to log.

Implements

M:Windows.Foundation.Diagnostics.ILoggingChannel.LogMessage(System.String) M:Windows.Foundation.Diagnostics.ILoggingChannel.LogMessage(Platform::String) M:Windows.Foundation.Diagnostics.ILoggingChannel.LogMessage(winrt::hstring)
Attributes

See also

Applies to

LogMessage(String, LoggingLevel)

Logs a message to the current LoggingChannel with the specified LoggingLevel.

public:
 virtual void LogMessage(Platform::String ^ eventString, LoggingLevel level) = LogMessage;
/// [Windows.Foundation.Metadata.Overload("LogMessageWithLevel")]
void LogMessage(winrt::hstring const& eventString, LoggingLevel const& level);
[Windows.Foundation.Metadata.Overload("LogMessageWithLevel")]
public void LogMessage(string eventString, LoggingLevel level);
function logMessage(eventString, level)
Public Sub LogMessage (eventString As String, level As LoggingLevel)

Parameters

eventString
String

Platform::String

winrt::hstring

The message to log.

level
LoggingLevel

The logging level.

Implements

M:Windows.Foundation.Diagnostics.ILoggingChannel.LogMessage(System.String,Windows.Foundation.Diagnostics.LoggingLevel) M:Windows.Foundation.Diagnostics.ILoggingChannel.LogMessage(Platform::String,Windows.Foundation.Diagnostics.LoggingLevel) M:Windows.Foundation.Diagnostics.ILoggingChannel.LogMessage(winrt::hstring,Windows.Foundation.Diagnostics.LoggingLevel)
Attributes

See also

Applies to