How to configure log4net for WCF

前端 未结 3 627
离开以前
离开以前 2021-01-11 12:36

On my asp webforms app I would do the log4net initialization;

log4net.Config.XmlConfigurator.Configure();

on global.asax on Application_Sta

3条回答
  •  滥情空心
    2021-01-11 13:13

    Same thing: Application_Start. After all it is an ASP.NET application. For self hosting services you could configure log4net just before starting the host.

提交回复
热议问题