[wasm][debugger] Improving logging control for tests (#42175)
authorAnkit Jain <radical@gmail.com>
Thu, 17 Sep 2020 00:58:16 +0000 (20:58 -0400)
committerGitHub <noreply@github.com>
Thu, 17 Sep 2020 00:58:16 +0000 (19:58 -0500)
commitdb6c3205edb3ad2fd7bc2b4a77bbaadbf3c95945
treec796629265cf1f44777011d9efc6b54994570336
parent3d75475979bda71ab0dfc4156ae7a660aa19ccfa
[wasm][debugger] Improving logging control for tests (#42175)

- replace CWLs with log messages
- Fix use of loggerFactory, and logger to correctly configure them, and
allow being controlled via appsettings.json

- Also, add default settings for proxy also, just an example:

```
     "LogLevel": {
       "Default": "Error",
       "Microsoft": "Warning",
       "Microsoft.WebAssembly.Diagnostics.TestHarnessProxy": "Information",
       "Microsoft.WebAssembly.Diagnostics.DevToolsProxy": "Information",
       "DebuggerTests.Inspector": "Information"
    }
```

Eg. to see trace messages (eg. protocol chat) for the test proxy:
    `"Microsoft.WebAssembly.Diagnostics.TestHarnessProxy": "Trace"`
src/mono/wasm/debugger/DebuggerTestSuite/TestHarnessProxy.cs
src/mono/wasm/debugger/DebuggerTestSuite/TestHarnessStartup.cs
src/mono/wasm/debugger/DebuggerTestSuite/appsettings.json