Server 2008 事件日志级别

发布于 2024-10-08 09:21:37 字数 691 浏览 0 评论 0原文

2008 年之前的事件日志条目(EVENTLOGRECORD 类型)有一个 EventType 成员,可以是 EVENTLOG_ERROR_TYPE、EVENTLOG_AUDIT_FAILURE 等。

从 Vista 开始,现在有 Level 和 Keyword 值而不是 EventType。我已经多次搜索了 Level 和 Keyword 可以保存的值,但找不到任何参考。

有这方面的官方文档吗?我不想通过查看大量现有的事件日志条目来尝试猜测,并希望我猜对了。

谢谢!

编辑:找到一些文档

http://msdn。 microsoft.com/en-us/library/aa382793(v=VS.85).aspx

ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/wes/wes/eventmanifestschema_keywordtype_complextype.htm

Pre-2008 event log entries (of type EVENTLOGRECORD) had an EventType member that could be EVENTLOG_ERROR_TYPE, EVENTLOG_AUDIT_FAILURE, etc.

Since Vista, now there are Level and Keyword values instead of EventType. I've searched high and low for what values Level and Keyword could hold but can't find any references.

Are there any official docs on this? I'd hate to try and guess by looking at a lot of existing event log entries and hoping I guess right.

Thanks!

EDIT: Found some docs

http://msdn.microsoft.com/en-us/library/aa382793(v=VS.85).aspx

ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/wes/wes/eventmanifestschema_keywordtype_complextype.htm

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

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

发布评论

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

评论(1

我一向站在原地 2024-10-15 09:21:37

我面前没有 SDK 头文件,但我找到了 EventLogRecord 托管类的以下信息:

EventLogRecord.Level

EventLogRecord.Keywords

I don't have the SDK header files in front of me, but I found the following information for the EventLogRecord managed class:

EventLogRecord.Level

EventLogRecord.Keywords

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