ILogger::LogException Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Logs the given exception at the given level under the given category.

Namespace:  System.Web.Http.Common
Assembly:  System.Web.Http.Common (in System.Web.Http.Common.dll)

void LogException(
	String^ category, 
	TraceLevel level, 
	Exception^ exception
)

Parameters

category
Type: System::String
The category under which to log the message. It can be empty but it cannot be nullptr.
level
Type: System.Diagnostics::TraceLevel
The TraceLevel at which to log the exception.
exception
Type: System::Exception
The Exception to log. It cannot be nullptr.

Show: