Link to home
Start Free TrialLog in
Avatar of swsbuyer
swsbuyer

asked on

How to redirect stdout / stderr in a windows service

I have an existing application that needs to be run as a service. The application dumps some output on the console. I would like to redirect the output to a log file. Any idea how to do this in C#?
Avatar of wwnosal
wwnosal

Call your program like this:

myProg.exe > myLog.log
ASKER CERTIFIED SOLUTION
Avatar of gregoryyoung
gregoryyoung
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial