microsoft / dev-proxy

Dev Proxy is an API simulator that helps you effortlessly test your app beyond the happy path.
https://aka.ms/devproxy
MIT License
471 stars 56 forks source link

Refactor logger grouping #716

Closed waldekmastykarz closed 3 months ago

waldekmastykarz commented 4 months ago

This PR continues the work from #715 and introduces an update to how our requests are logged. Right now, we print request messages (chaos, mock, etc) as we get them from plugins. With many requests intercepted it makes it hard to understand which messages belong to the same request. This change proposes an update to how we show log messages and groups all messages related to the same request together. Related messages are buffers in a custom formatter, and when it receives the signal that all plugins executed, it prints the collected messages to console.