///// <summary> ///// The logger message critical ///// </summary> //private static readonly Action<ILogger, string, Exception> _loggerMessageCritical = LoggerMessage.Define<string>(LogLevel.Critical, new EventId(100, "CRITICAL"), "{Message}"); ///// <summary> ///// The logger message debug ///// </summary> //private static readonly Action<ILogger, string, Exception> _loggerMessageDebug = LoggerMessage.Define<string>(LogLevel.Debug, new EventId(200, "DEBUG"), "{Message}"); ///// <summary> ///// The logger message error ///// </summary> //private static readonly Action<ILogger, string, Exception> _loggerMessageError = LoggerMessage.Define<string>(LogLevel.Error, new EventId(300, "ERROR"), "{Message}"); ///// <summary> ///// The logger message information ///// </summary> //private static readonly Action<ILogger, string, Exception> _loggerMessageInformation = LoggerMessage.Define<string>(LogLevel.Information, new EventId(400, "INFORMATION"), "{Message}"); ///// <summary> ///// The logger message trace ///// </summary> //private static readonly Action<ILogger, string, Exception> _loggerMessageTrace = LoggerMessage.Define<string>(LogLevel.Trace, new EventId(500, "TRACE"), "{Message}"); ///// <summary> ///// The logger message warning ///// </summary> //private static readonly Action<ILogger, string, Exception> _loggerMessageWarning = LoggerMessage.Define<string>(LogLevel.Warning, new EventId(600, "WARNING"), "{Message}"); /// <summary> /// Handles the FirstChanceException event of the CurrentDomain control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="FirstChanceExceptionEventArgs" /> instance containing the event data.</param> private static void CurrentDomain_FirstChanceException(object sender, FirstChanceExceptionEventArgs e) { EasyLogger.LogError(_appDomainExceptionLogger, e.Exception.GetAllMessages(), e.Exception); }