Open sandboxFocus

Method OnInternalException

OnInternalException(Exception, LoggingTypeSource)

Method invoked when an exception is caught in logging code.

Declaration
public static void OnInternalException(Exception exception, LoggingTypeSource source)
Parameters
Type Name Description
Exception exception

The caught exception, or null if it is not available.

LoggingTypeSource source

The relevant LoggingTypeSource, or null if it could not be determined.

OnInternalException(Exception, LoggingTypeSource, LogRecordBuilder)

Method invoked when an exception is caught in logging code. This overload disposed the LogRecordBuilder.

Declaration
public static void OnInternalException(Exception exception, LoggingTypeSource source, LogRecordBuilder recordBuilder)
Parameters
Type Name Description
Exception exception

The caught exception, or null if it is not available.

LoggingTypeSource source

The relevant LoggingTypeSource, or null if it could not be determined.

LogRecordBuilder recordBuilder

An optional LogRecordBuilder that will be disposed.