opentok / opentok-windows-sdk-samples

Sample applications illustrating best practices using OpenTok Windows SDK
MIT License
9 stars 29 forks source link

Use Trace.WriteLine instead of Console.WriteLine. #11

Closed fidergo-stephane-gourichon closed 6 years ago

fidergo-stephane-gourichon commented 6 years ago

Console message are just lost in windowed applications. Even in console applications, Console output is not handy at all: not easily redirected to log, and copy-paste is clumsy.

On the contrary, Trace naturally appears in debugger, is easily duplicated to logs via .NET trace listeners. Ref e.g. https://docs.microsoft.com/en-us/dotnet/framework/debug-trace-profile/tracing-and-instrumenting-applications

fidergo-stephane-gourichon commented 6 years ago

Just updated the pull request (fix wrong commit).

msach22 commented 6 years ago

@fidergo-stephane-gourichon can we make this consistent across all samples?