microsoft / vscode-debugadapter-node

Debug adapter protocol and implementation for VS Code.
Other
271 stars 77 forks source link

Allow Logger consumers to customize log output #201

Open roblourens opened 6 years ago

roblourens commented 6 years ago

https://github.com/Microsoft/vscode-chrome-debug-core/pull/355 tries to clean script contents from logged messages, and it's a very awkward hack via patching a method on Logger. We should provide a nice way for consumers to customize the output.

We can add protected methods to the LoggingDebugSession that format log messages, so they can be overridden.