private static NLog.LogLevel Convert(LogLevel logLevel)
 {
     return(logLevel switch
     {
         LogLevel.Trace => NLog.LogLevel.Trace,
         LogLevel.Debug => NLog.LogLevel.Debug,
         LogLevel.Info => NLog.LogLevel.Info,
         LogLevel.Warn => NLog.LogLevel.Warn,
         LogLevel.Error => NLog.LogLevel.Error,
         LogLevel.Fatal => NLog.LogLevel.Fatal,
         _ => throw new ArgumentOutOfRangeException(nameof(logLevel), logLevel, null)
     });
 public bool IsEnabled(LogLevel logLevel)
 {
     return(logger.IsEnabled(Convert(logLevel)));
 }