HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › Troubleshooting › Debugging PD4ML in a .NET Windows Service › Re: Re: Debugging PD4ML in a .NET Windows Service
October 1, 2015 at 13:46
#29841
Thank you for sharing the info!
WCF supports a number of service initialization methods: http://blogs.msdn.com/b/wenlong/archive/2006/01/11/511514.aspx
A straightforward way would be to redirect the console by WCF service start in AppInitialize() (and instantly test it with Console.Error.WriteLine() if needed)
Note: if AutoFlush is not disabled, you may see the first log output only after an output buffer is full.