Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / April 2007

Tip: Looking for answers? Try searching our database.

[ANN] Event logging, tracing, conditional code and performance counters

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard Grimes [MVP] - 09 Apr 2007 17:24 GMT
New, free, .NET workshop from Richard Grimes, covering Conditional Code,
Tracing, Asserts, .NET Trace Sources and Trace Listeners, Performance
Counters and the Event Log:

http://www.grimes.demon.co.uk/workshops/instrumentationWS.htm

Richard
Signature

Free .NET tutorials,
Fusion: http://www.grimes.demon.co.uk/workshops/fusionWS.htm
Security: http://www.grimes.demon.co.uk/workshops/securityWS.htm
Instrumentation:
http://www.grimes.demon.co.uk/workshops/instrumentationWS.htm

msgroup - 09 Apr 2007 18:33 GMT
Hi, Richard:

   Thanks a lot for your articles. I bought a few your tech books about
C++/ATL and COM in the past decade. Great works!

Yuancai (Charlie) Ye

> New, free, .NET workshop from Richard Grimes, covering Conditional Code,
> Tracing, Asserts, .NET Trace Sources and Trace Listeners, Performance
[quoted text clipped - 3 lines]
>
> Richard
bazad - 10 Apr 2007 06:44 GMT
It is a great undertaking, but I can't find anything knew in there, that I
can't already find on MSDN.

On a  more constructive note.

Event log section fails to mention that code must be running as a member of
Administrators group for it to create Event log source.  This is especially
important for code like the following sample parts to work:

...
        if (EventLog.SourceExists(sourceName))
        {
           EventLog.DeleteEventSource(sourceName);
           EventLog.Delete(logName);
        }
...
     if (!EventLog.SourceExists(sourceName))
     {
        EventLog.CreateEventSource(sourceName, logName);
...

Administrator membership is also a reason for installer to create event log
sources and performance counters instead of doing it from the main
application.

Performance counters section is weak.  A not so obvious problem of counting
time span is not covered at all and it is part of many performance counters.
AverageTimer32 example could be quite valuable.

Multi-instance performance counters can easily run out of memory.
Interesting topic...

> New, free, .NET workshop from Richard Grimes, covering Conditional Code,
> Tracing, Asserts, .NET Trace Sources and Trace Listeners, Performance
[quoted text clipped - 3 lines]
>
> Richard
Richard Grimes [MVP] - 22 Apr 2007 21:00 GMT
> It is a great undertaking, but I can't find anything knew in there,
> that I can't already find on MSDN.

That's not the point. It's for people who don't want to trawl through
MSDN.

If you go on any training session you'll get stuff that is readily
available in MSDN too, and yet people are willing to pay for those ;-)

> On a  more constructive note.
>
> Event log section fails to mention that code must be running as a
> member of Administrators group for it to create Event log source.

It should, and I thought it did, but it doesn't. I'll change it.

> Administrator membership is also a reason for installer to create
> event log sources and performance counters instead of doing it from
[quoted text clipped - 3 lines]
> counting time span is not covered at all and it is part of many
> performance counters. AverageTimer32 example could be quite valuable.

Don't worry, that's already taken care of, it's just that I haven't
posted it yet.

> Multi-instance performance counters can easily run out of memory.
> Interesting topic...

Indeed.

Richard
Signature

Free .NET tutorials,
Fusion: http://www.grimes.demon.co.uk/workshops/fusionWS.htm
Security: http://www.grimes.demon.co.uk/workshops/securityWS.htm
Instrumentation:
http://www.grimes.demon.co.uk/workshops/instrumentationWS.htm


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.