ILoggingChannel.LogMessage 方法

定义

重载

LogMessage(String)

将消息记录到当前 LoggingChannel

LogMessage(String, LoggingLevel)

使用指定的 LoggingLevel 将消息记录到当前 LoggingChannel

LogMessage(String)

将消息记录到当前 LoggingChannel

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

参数

eventString
String

Platform::String

winrt::hstring

要记录的消息。

属性

另请参阅

适用于

LogMessage(String, LoggingLevel)

使用指定的 LoggingLevel 将消息记录到当前 LoggingChannel

public:
 void LogMessage(Platform::String ^ eventString, LoggingLevel level);
/// [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)

参数

eventString
String

Platform::String

winrt::hstring

要记录的消息。

level
LoggingLevel

日志记录级别。

属性

另请参阅

适用于