How can I include SessionID in log files using log4net in ASP.NET?

后端 未结 5 742
执念已碎
执念已碎 2020-12-25 13:00

I\'m new to log4net, so hopefully this is a really easy question for someone?!

I\'ve got log4net working with the RollingLogFileAppender for my web application. I\'

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-25 13:28

    I was looking answer for this too and found out that %aspnet-request{ASP.NET_SessionId} works fine for me.

提交回复
热议问题