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 |
| LoggingTypeSource | source | The relevant LoggingTypeSource, or |
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 |
| LoggingTypeSource | source | The relevant LoggingTypeSource, or |
| LogRecordBuilder | recordBuilder | An optional LogRecordBuilder that will be disposed. |