enjoycoding / vite-plugin-mock-server

A mock server plugin for Vite.
MIT License
58 stars 13 forks source link

`logLevel` has no effect #13

Closed moltar closed 1 year ago

moltar commented 2 years ago

I have set logLevel: 'error', in the config file, yet I keep seeing output like:

[vite-plugin-mock-server] mock server started. options = {
  mockRootDir: '....',
  urlPrefixes: [ '/api/' ],
  logLevel: 'error',
  mockJsSuffix: '.mock.js',
  mockTsSuffix: '.mock.ts',
  noHandlerResponse404: true,
  mockModules: [
    '...'
  ]
}
octoape commented 2 years ago

Yes, this information is printed only once at startup. The intention is to let users know what they have configured.

moltar commented 2 years ago

Right, but I think if I choose to have no logging, then it shouldn't print anything.