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);
static member LogExceptionMessage : Exception -> Exception
Public Shared Function LogExceptionMessage (exception As Exception) As 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);
static member LogExceptionMessage : System.Diagnostics.Tracing.EventLevel * Exception -> Exception
Public Shared Function LogExceptionMessage (eventLevel As EventLevel, exception As Exception) As Exception

Parameters

eventLevel
EventLevel

Identifies the level of an event to be logged.

exception
Exception

The exception to log.

Returns

Applies to