LogEventForException Method

Log an event to the Application event log representing an exception. This is used primarily for capturing site exceptions for monitoring purposes.

Namespace:  Microsoft.CommerceServer.Runtime
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Shared Sub LogEventForException ( _
    ex As Exception _
)
'Usage
Dim ex As Exception

ExceptionEventLogger.LogEventForException(ex)
public static void LogEventForException(
    Exception ex
)
public:
static void LogEventForException(
    Exception^ ex
)
public static function LogEventForException(
    ex : Exception
)

Parameters

Remarks

Logs exception information to the application's log listeners.

Only certain exception types will be logged, other exceptions will be ignored. The following exception types will be logged:

Permissions

See Also

Reference

ExceptionEventLogger Class

ExceptionEventLogger Members

Microsoft.CommerceServer.Runtime Namespace