LoggingChannel.LogMessage 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
LogMessage(String) |
將訊息記錄到目前的 LoggingChannel。 |
LogMessage(String, LoggingLevel) |
使用指定的LoggingLevel,將訊息記錄至目前的LoggingChannel。 |
LogMessage(String)
將訊息記錄到目前的 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)
參數
- eventString
-
String
Platform::String
winrt::hstring
要記錄的訊息。
實作
M:Windows.Foundation.Diagnostics.ILoggingChannel.LogMessage(System.String)
M:Windows.Foundation.Diagnostics.ILoggingChannel.LogMessage(Platform::String)
M:Windows.Foundation.Diagnostics.ILoggingChannel.LogMessage(winrt::hstring)
- 屬性
另請參閱
適用於
LogMessage(String, LoggingLevel)
使用指定的LoggingLevel,將訊息記錄至目前的LoggingChannel。
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)
參數
- eventString
-
String
Platform::String
winrt::hstring
要記錄的訊息。
- level
- LoggingLevel
記錄層級,
實作
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)
- 屬性