Closed li-2021 closed 2 years ago
console.debug
is only visible with node --inspect
Explained in: https://stackoverflow.com/a/47147123/3841188
Logging has been improved in v3 (still in beta) of http-proxy-middleware. And will only use info
, warn
and error
for better compatibility: https://github.com/chimurai/http-proxy-middleware/blob/master/src/logger.ts
Closing stale issue. Feel free to re-open.
Checks
http-proxy-middleware
.Describe the bug (be clear and concise)
In the Vue project created by vue-cli5, I configured the proxy's loglevel: 'debug', but it did not print any logs on the console.Proxy is actually in effect. I try to print in the source code.It can print.However, this.logger.debug method does not print.
Step-by-step reproduction instructions
Expected behavior (be clear and concise)
When I configure loglevel: 'debug', I should print the relevant logs on the console when I call the interface through inversion.
How is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response