Click here to Skip to main content
15,887,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi friends,

I want to record a log onto server2008 in eventviewer.
Eventually its recording each and every events automatically, but what i want is to log a new event through my C# application.

Is there any option that is possible to achieve this?

Please help me ASAP.

Thanks in advance.

With regards
R.K.
Posted

1 solution

You need to use the EventLog class to log the error message to system eventviewer
More details http://msdn.microsoft.com/en-us/library/system.diagnostics.eventlog.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900