记录到 WSS 3.0 服务器上的 ULS 日志

发布于 2024-07-15 10:42:36 字数 288 浏览 6 评论 0原文

我有一个场景,我的服务器上只有 WSS 3.0,并且我希望能够记录到 ULS 日志。 在大多数情况下,我在同一台服务器上安装了 MOSS 2007,并且可以使用 Microsoft.Office.Server.Diagnostics.PortalLog.LogString 类/方法,但在本例中这不是一个选项。

还有其他人能够在仅 WSS 服务器上成功登录到 ULS 日志吗? 如果没有,您是否使用日志记录组件(例如 log4net 等)或者如何记录? 强烈建议记录到 ULS 日志。

TIA, 马格努斯

I have a scenario where I have WSS 3.0 only on a server and I would like to be able to log to the ULS log. In most cases, I have MOSS 2007 installed on the same server and can use the class/method Microsoft.Office.Server.Diagnostics.PortalLog.LogString but that is not an option in this case.

Have anyone else been able to successfully log to the ULS log on a WSS-only server? If not, do you use a logging component instead like log4net etc or how do you log? Logging to the ULS log would be strongly preferred.

TIA,
Magnus

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

祁梦 2024-07-22 10:42:36

Microsoft 已在 MSDN 上使用此示例对此进行了记录

Microsoft has documented it with this example on MSDN

如梦亦如幻 2024-07-22 10:42:36

我将 log4net 与 Codeplex 的 ULS LogAppender 结合使用:
http://splog4net.codeplex.com/

详细信息如下:
链接< /a>

log4net 在这里:
http://logging.apache.org/log4net/index.html

我发现这个成为最好的解决方案只是因为我的日志记录位置和方式因客户端而异,而 log4net 允许我非常轻松地重新配置它。

I use log4net with the ULS LogAppender fromCodeplex:
http://splog4net.codeplex.com/

The details on that are here:
Link

And the log4net is here:
http://logging.apache.org/log4net/index.html

I find this to be the best solution simply because where and how I log is something that changes from client to client and log4net allows me to re-configure this really easily.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文