How to make new custom log

A

Anders Both

How do I make my wery own custom log, so that I don´t need to write into the
Application Log.

I want a log that I can see in computer manament side by side with the three
others : Application, Security and System.

Best Regards

Anders Both, Denmark.
 
G

Guest

Hi Anders

To write to custom log, first you need to create a event source and log. Check this link about CreateEventSource
http://msdn.microsoft.com/library/d...btskcreatingremovingcustomlogseventsources.as

After this, you can use WriteEntry method to write to the log. Please note, you need to give the event source and log which you created using the previous method. check the below link for WriteEntry
http://msdn.microsoft.com/library/d...emdiagnosticseventlogclasswriteentrytopic5.as

Hope this helps

Regards
Madh

MVP | MCSD.NE

----- Anders Both wrote: ----


How do I make my wery own custom log, so that I don´t need to write into th
Application Log

I want a log that I can see in computer manament side by side with the thre
others : Application, Security and System

Best Regard

Anders Both, Denmark
 
A

Anders Both

Thx, I will look into it tommorow.

Best Regards ,

Anders Both, Denmark.

Madhu said:
Hi Anders,

To write to custom log, first you need to create a event source and log.
Check this link about CreateEventSource,
http://msdn.microsoft.com/library/d...tskcreatingremovingcustomlogseventsources.asp

After this, you can use WriteEntry method to write to the log. Please
note, you need to give the event source and log which you created using the
previous method. check the below link for WriteEntry.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top