可以设置多个异常记录器的用例是什么

What is the use case that multiple Exception Logger are possible to setup

ASP.NET Web API 2.2

后者允许多重设置,但为什么呢?

我可能需要该功能的用例是什么?

来自ASP.NET源代码

public DefaultServices(HttpConfiguration configuration)
{
  //... removed for clarity

  this.SetSingle<IExceptionHandler>((IExceptionHandler) new DefaultExceptionHandler());

  this.SetMultiple<IExceptionLogger>();
  this._serviceTypesSingle = new HashSet<Type>((IEnumerable<Type>) this._defaultServicesSingle.Keys);
  this._serviceTypesMulti = new HashSet<Type>((IEnumerable<Type>) this._defaultServicesMulti.Keys);
  this.ResetCache();
}

记录到多个来源。

我需要在仪表板上实时显示日志消息,但我们也想将日志记录保存到存储中。虽然这可以用一个记录器来完成,但我们更喜欢使用多个记录器,恕我直言,这是一个更干净的解决方案。