470,648 Members | 1,640 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,648 developers. It's quick & easy.

Question on the Logging Application Block

I'm using version 3.1.0.0.

I've created a web service project and am logging info to the Event
Log.

Originally I experimented with the Quick Start Logging App. Then I
copied some of the config file to my own project and tried getting it
to work.

In the <listenerssection there is a 'source' attribute, which seems
like it should take a user-defined string. But I find the only values
I can put in here are ones that I've already used in the Quick Start
App. Otherwise I see nothing in the Event Log.
So, the QS has "Logging Quick Start", so I can use that in my app.
I want to use "MyApp" for the source value, and I've only been able to
do this after I run the QS with that value in the config file.

So evidently the 'source' value has to be established in the Event
Log, and the QS app is doing this somehow, but I don't see it.

Any thoughts or clarifications?

Jun 19 '07 #1
1 1010
On Jun 19, 11:13 am, cowznofsky <jhco...@yahoo.comwrote:
I'm using version 3.1.0.0.

I've created a web service project and am logging info to the Event
Log.

Originally I experimented with the Quick Start Logging App. Then I
copied some of the config file to my own project and tried getting it
to work.

In the <listenerssection there is a 'source' attribute, which seems
like it should take a user-defined string. But I find the only values
I can put in here are ones that I've already used in the Quick Start
App. Otherwise I see nothing in the Event Log.
So, the QS has "Logging Quick Start", so I can use that in my app.
I want to use "MyApp" for the source value, and I've only been able to
do this after I run the QS with that value in the config file.

So evidently the 'source' value has to be established in the Event
Log, and the QS app is doing this somehow, but I don't see it.

Any thoughts or clarifications?
Here is what I'm realizing:
1. I believe my web service did not have permissions to write to the
Event Log.
Problem was that the Write method did not throw an exception, so I got
confused.
I could just see that no entry was written.
2. The Quick Start program is a windows app, and had the permissions
to write to the Log.
3. Once the QS program wrote to the log with a specific value for
"source", evidently the permissions were ignored for any process that
wanted to write to the log using that same value, a bug/feature that
got me really confused.
4. In each case, the value for "user' in the log is "N/A", which
didn't help things either.

Jun 20 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ayende Rahien | last post: by
reply views Thread by Joe Bloggs | last post: by
4 posts views Thread by Steven | last post: by
16 posts views Thread by Einar HÝst | last post: by
reply views Thread by Raymond Roelands | last post: by
1 post views Thread by arunairs | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.