LogHelper.LogExceptionMessage Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
LogExceptionMessage(Exception) |
Logs an exception using the event source logger. |
LogExceptionMessage(EventLevel, Exception) |
Logs an exception using the event source logger. |
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
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.