Windows 日志生成器
有没有办法生成特定的 Windows 事件?
我目前正在开发一个解决方案来通过 WMI 进程获取此事件,但我需要 Windows 可以生成的所有日志。
我知道有一种方法可以使 .net 解决方案将事件写入事件查看器,但我不希望这样做。
有没有办法编写代码或制定解决方案使 Windows 生成事件?或者您推荐我什么其他方法?
Is there a way to generate specific Windows events?
I'm currently developing a solution to get this events through WMI process, but I need all the logs Windows can generate.
I know there is a way to make .net solution to write the events to the event viewer, but I don't want that.
Is there a way to code or make a solution to make Windows to generate the events? Or what any other approach do you recommend me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不会。这些事件不是由 Windows 本身生成的——Windows 只是报告底层应用程序想要放入事件日志中的内容。您必须查找有关每个给定 Windows 组件可能生成的各种事件的文档,因为这是每个特定组件的域,而不是事件日志系统本身的域。
No. The events are not generated by Windows itself -- Windows is just reporting what the underlying application said it wanted to put into the event log. You would have to lookup documentation on the various events every given Windows component could generate, because that is the domain of each specific component, not of the event logging system itself.
您可以在 Visual Studio 2015 中创建一个简单的侦听器,将输出定向到 Windows 事件日志。
运行您的应用程序。
检查您的 Windows 事件日志。
如果您需要 EXE 文件,您可以在 Documents\Visual Studio 2015\您的项目中找到
You can create a simple listener in Visual Studio 2015 that directs your output to a Windows EventLog.
Run your application.
Check your Windows Event log.
If you need EXE file you can find in your Documents\visual studio 2015\your project
不,您无法生成 Windows 事件。
但如果您想了解可能遇到的事件 - 请查看以下内容以获取 Windows 事件的完整列表:
安全事件描述(Microsoft 网站)
Windows 安全日志事件(终极Windows安全)
No you can't generate Windows events.
But if you want to find out what events you might encounter - have a look at the following for a complete list of Windows Events:
Security Event Descriptions (Microsoft Site)
Windows Security Log Events (Ultimate Windows Security)