LoggingServices.OnInternalException Method (Exception, LoggingTypeSource, LogRecordBuilder) |
Method invoked when an exception is caught in logging code. This overload disposed the LogRecordBuilder.
Namespace: PostSharp.Patterns.Diagnostics
Assembly: PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.11.0 (6.9.11.0)
C#
public static void OnInternalException( Exception exception, LoggingTypeSource source, LogRecordBuilder recordBuilder )
Parameters
- exception
- Type: System.Exception
The caught exception, or null if it is not available. - source
- Type: PostSharp.Patterns.Diagnostics.LoggingTypeSource
The relevant LoggingTypeSource, or null if it could not be determined. - recordBuilder
- Type: PostSharp.Patterns.Diagnostics.RecordBuilders.LogRecordBuilder
An optional LogRecordBuilder that will be disposed.