LogHelper.LogExceptionMessage Method

Definition

Overloads

LogExceptionMessage(Exception)

Logs an exception using the event source logger.

LogExceptionMessage(EventLevel, Exception)

Logs an exception using the event source logger.

LogExceptionMessage(Exception)

Logs an exception using the event source logger.

public static Exception LogExceptionMessage (Exception exception);

Parameters

exception
Exception

The exception to log.

Returns

Applies to

LogExceptionMessage(EventLevel, Exception)

Logs an exception using the event source logger.

public static Exception LogExceptionMessage (System.Diagnostics.Tracing.EventLevel eventLevel, Exception exception);

Parameters

eventLevel
EventLevel

Identifies the level of an event to be logged.

exception
Exception

The exception to log.

Returns

Applies to