共用方式為


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

記錄層級,

屬性

另請參閱

適用於