Log Level

用于控制 http-proxy-middleware 的日志的数量。

可能的值:

  • debug
  • info
  • warn (默认)
  • error
  • silent

Level: debug

会记录所有

var proxyMiddleware = require("http-proxy-middleware");

var options = {
    target: 'http://localhost:3000',
    logLevel: 'debug'
};

var proxy = proxyMiddleware('/api', options);

Level: silent

禁用所有的日志记录。

var proxyMiddleware = require("http-proxy-middleware");

var options = {
    target: 'http://localhost:3000',
    logLevel: 'silent'
};

var proxy = proxyMiddleware('/api', options);

results matching ""

    No results matching ""