logger.js 352 B

123456789101112131415
  1. import Vue from 'vue'
  2. import VueLogger from 'vuejs-logger'
  3. const isProduction = process.env.NODE_ENV === 'production'
  4. const options = {
  5. isEnabled: true,
  6. logLevel: isProduction ? 'error' : 'debug',
  7. stringifyArguments: false,
  8. showLogLevel: true,
  9. showMethodName: true,
  10. separator: '|',
  11. showConsoleColors: true
  12. }
  13. Vue.use(VueLogger, options)