ILoggingChannel.LogMessage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
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)
Parameters
- eventString
-
String
Platform::String
winrt::hstring
The message to log.
- Attributes
See also
Applies to
LogMessage(String, LoggingLevel)
Logs a message to the current LoggingChannel with the specified LoggingLevel.
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)
Parameters
- eventString
-
String
Platform::String
winrt::hstring
The message to log.
- level
- LoggingLevel
The logging level.
- Attributes