ConnectedServiceLogger.WriteMessageAsync 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
WriteMessageAsync(LoggerMessageCategory, String) |
Write a message to the log. |
WriteMessageAsync(LoggerMessageCategory, String, Object[]) |
Write a message to the log. |
WriteMessageAsync(LoggerMessageCategory, String)
Write a message to the log.
public:
abstract System::Threading::Tasks::Task ^ WriteMessageAsync(Microsoft::VisualStudio::ConnectedServices::LoggerMessageCategory category, System::String ^ message);
public abstract System.Threading.Tasks.Task WriteMessageAsync (Microsoft.VisualStudio.ConnectedServices.LoggerMessageCategory category, string message);
abstract member WriteMessageAsync : Microsoft.VisualStudio.ConnectedServices.LoggerMessageCategory * string -> System.Threading.Tasks.Task
Public MustOverride Function WriteMessageAsync (category As LoggerMessageCategory, message As String) As Task
Parameters
- category
- LoggerMessageCategory
The severity level of the message.
- message
- String
The message to write.
Returns
Applies to
WriteMessageAsync(LoggerMessageCategory, String, Object[])
Write a message to the log.
public:
abstract System::Threading::Tasks::Task ^ WriteMessageAsync(Microsoft::VisualStudio::ConnectedServices::LoggerMessageCategory category, System::String ^ format, ... cli::array <System::Object ^> ^ args);
public abstract System.Threading.Tasks.Task WriteMessageAsync (Microsoft.VisualStudio.ConnectedServices.LoggerMessageCategory category, string format, params object[] args);
abstract member WriteMessageAsync : Microsoft.VisualStudio.ConnectedServices.LoggerMessageCategory * string * obj[] -> System.Threading.Tasks.Task
Public MustOverride Function WriteMessageAsync (category As LoggerMessageCategory, format As String, ParamArray args As Object()) As Task
Parameters
- category
- LoggerMessageCategory
The severity level of the message.
- format
- String
A composite format string
- args
- Object[]
An object array that contains zero or more objects to format.
Returns
Returns a Task that can be awaited and that will indicate the success or failure of the operation.