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
- ex
Type: System..::.Exception
Exception to log.
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:
CatalogDatabaseException - exception that is thrown when an unexpected database failure is encountered by the catalog server.
CatalogAuthorizationException - exception that is thrown when catalog system authorization fails.
CatalogInitializationException - exception that is thrown when the catalog server is incorrectly configured and cannot be started.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.