I am using Windows Service using C#.I want an output in Console say Console.WriteLine("Hello").I am not able to get that whereas I am able to successfully write it make an eventLog Entry.
eventLog1.WriteEntry("In OnStart");
try
{
Console.WriteLine("Hello");
DBSyncHandler sync = new DBSyncHandler();
sync.startSync();
}
Say therefore I am not able to check whether it is writing to Console and executing below mentioned code.