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)
- 属性