This documentation is archived and is not being maintained.

ILogger::LogException Method (String, Int32, String, Exception)

Logs an exception.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.VisualStudio.TeamFoundation.Client (in Microsoft.VisualStudio.TeamFoundation.Client.dll)

void LogException(
	String^ plugin, 
	int logLevel, 
	String^ msg, 
	Exception^ e
)

Parameters

plugin
Type: System::String

The plug-in that raised the exception.

logLevel
Type: System::Int32

The log level.

msg
Type: System::String

A message to write to the log.

e
Type: System::Exception

The exception to write to the log.

Show: