简体   繁体   English

在Windows 7事件日志中,什么是“源”?

[英]In Windows 7 event log, what is a “Source”?

I'm coding a simple application in C# and writing somethings to the Event Log. 我正在用C#编写一个简单的应用程序,并将一些事情写入事件日志。 I have declared the name of a "Source" but I don't really know what this is doing. 我已经宣布了“来源”的名称,但我真的不知道这是做什么的。 Can someone link me to some reading or give me a very high level explanation of what I'm naming? 有人可以把我链接到一些阅读或给我一个非常高级别的解释我的命名?

It is the event originator. 它是事件的创始人。 Should be your application name. 应该是你的申请名称。

The Source property is supposed to define what is logging the event. Source属性应该定义记录事件的内容。 It's usually the name of your application, but if you've got something massive it can be some particular module inside your application. 它通常是您的应用程序的名称,但如果您有大量的东西,它可以是您的应用程序中的一些特定模块。

MSDN is always a good place to look for things like this, incidentally. 顺便说一句, MSDN总是一个寻找这样的东西的好地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM