开发者

Create Custom Log in Event Viewer with C++

开发者 https://www.devze.com 2023-04-04 23:33 出处:网络
I want to be able to create a custom log in event viewer (i.e. to create a custom node under \"Application and Services Logs\" in windows event viewer)

I want to be able to create a custom log in event viewer (i.e. to create a custom node under "Application and Services Logs" in windows event viewer)

It is an easy task, if you u开发者_运维技巧se EventLog.CreateEventSource method: LINK Its problem is that this method is only available from in the unmanaged code.

I'm wondering if there is any way I can do this in my Managed C++ code.

I'm currently using manifest-based ETW for logging. Is there anywhere in the manifest of the provider that I can set it?

Cheers, Reza++

0

精彩评论

暂无评论...
验证码 换一张
取 消