How To Test Windows Service By Event Viewer


How To Test Windows Service By Event Viewer

Write into your service code at every step:
Code
Code
Code

EventLog.WriteEntry(“Step one”);

Code
Code
Code
EventLog.WriteEntry(“Step two”);

and Follow it into event viewer ,you can reach this option as follows:

Right Click on my computer >> manage >> From Left Pane [Event Viewer]>> Windows Logs>>Application

you will notice all application and services logs in the right pane

Follow your service and click on every record to trace it

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s