ActivityLog.LogInformation(String, String) Method

Definition

Logs an information message in the activity log with the given source.

public:
 static void LogInformation(System::String ^ source, System::String ^ message);
public:
 static void LogInformation(Platform::String ^ source, Platform::String ^ message);
 static void LogInformation(std::wstring const & source, std::wstring const & message);
public static void LogInformation (string source, string message);
static member LogInformation : string * string -> unit
Public Shared Sub LogInformation (source As String, message As String)

Parameters

source
String

A name associated with the source contributing the message.

message
String

The message to be written to the activity log.

Remarks

Can throw if the SVsActivityLog service is not available, or if the LogEntry method fails.

Applies to