What happens to messages printed to stdout and stderr from a Windows service? I know they're not going anywhere, but do they go down /dev/null? Is it possible that an application will block during such a write ?
Windows Services have existed for over 20 years. They start most often at system startup and run permanently. A Worker Service is also a real process, but is intended as a background service for a front-end application; it starts with the application and stops with the application.
A Windows service is a long-running application that can be started automatically when your system is started. You can pause your service and resume or even restart it if need be. Once you have created a Windows service, you can install it in your system using the InstallUtil.exe command line utility.
The output will effectively go to dev/null, and won't introduce a blocking issue. Now performance on the other-hand will be impacted, as it does take resources to write it out.
Ideally, you would be able to configure where logs end up. A nicely implemented service will allow for:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With