Class LoggerDefaults
- Namespace
- Arc4u.Diagnostics
- Assembly
- Arc4u.Diagnostics.dll
Default logging helpers shared by Arc4u components.
public static class LoggerDefaults
- Inheritance
-
LoggerDefaults
- Inherited Members
Methods
LogException(ILogger, Exception, string)
Logs an exception at Error level with event id 9000 and the message Exception: {Message}.
Nothing is written when the Error level is disabled. If the logger is an ILoggerCallerMember, the caller name is recorded.
public static void LogException(this ILogger logger, Exception exception, string caller = "")