LoggerExtensionsLogUnexpectedException Method
Invoked when an unexpected and unhandled exception occurs.
Namespace: MobileTrack.Common.ExtensionsAssembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
[LoggerMessageAttribute(1000, LogLevel.Critical, "Unexpected exception of type {Type} was thrown! {Message} - {StackTrace}")]
public static void LogUnexpectedException(
this ILogger logger,
Type type,
string message,
string? stackTrace
)
- logger ILogger
- Logger
- type Type
- Exception type
- message String
- Exception message
- stackTrace String
- Exception stacktrace
In Visual Basic and C#, you can call this method as an instance method on any object of type
ILogger. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).