question

Niko-8194 avatar image
0 Votes"
Niko-8194 asked AndreasBaumgarten edited

Use C# Console.WriteLine in Windows service

Hi everybody,

here's my question:

if I call Console.WriteLine (C#) in a Windows Service, are the logs written anyway in a sort of "hidden" console?

I'm NOT interested in finding out where Windows Service writes Console.WriteLine's logs, I'm just wondering if the service still writes the log in a background console (invisible to the user) when Console.WriteLine is called.

Thank you in advance,

Regards.

dotnet-cli
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JaliyaUdagedara avatar image
0 Votes"
JaliyaUdagedara answered

No, it will be discarded

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.