Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些带有订单的网站。如果发生超时,我该如何记录。我可以在哪里放置我的日志代码?
这是我在 Global.asax.cs 中的应用程序中记录会话超时的方式
protected void Session_End() { NLogger.Log("Session {0} has ended.", new String[] { Session.SessionID, Session.Timeout.ToString()}, NLogger.Info); }