代码之家  ›  专栏  ›  技术社区  ›  rkralston

另一个记录器中的.Net核心ELMAH功能?

  •  1
  • rkralston  · 技术社区  · 7 年前

    鉴于ELMAH不会很快被移植到.Net核心: https://github.com/elmah/Elmah/issues/407

    有人在端口记录器(Log4Net)中创建了配置吗这会像ELMAH那样提取HttpResponse上下文信息吗?

    2 回复  |  直到 6 年前
        1
  •  1
  •   Florian Hilfenhaus    5 年前
        2
  •  0
  •   ThomasArdal    7 年前

    TL;医生:我不这么认为。

    Microsoft.Extensions.Logging 为什么这种行为有意义。

    我已经实现了ASP。NET核心中间件,通过将所有未捕获的异常记录到 elmah.io (不是ELMAH): https://github.com/elmahio/Elmah.Io.AspNetCore/blob/master/src/Elmah.Io.AspNetCore/ElmahIoMiddleware.cs

    Error Logging Middleware in ASP.NET Core