/* eslint-disable no-console */
import configuration from './configuration'

const logger = {
  debug(...args) {
    if (['debug'].includes(configuration.logLevel)) {
      console.debug(...args)
    }
  },
  log(...args) {
    if (['debug', 'log'].includes(configuration.logLevel)) {
      console.log(...args)
    }
  },
  warn(...args) {
    if (['debug', 'log', 'warn'].includes(configuration.logLevel)) {
      console.warn(...args)
    }
  },
  error(...args) {
    if (['debug', 'log', 'warn', 'error'].includes(configuration.logLevel)) {
      console.error(...args)
    }
  },
}

export default logger

/* eslint-disable no-console */
import configuration from './configuration'

const logger = {
  debug(...args) {
    if (['debug'].indexOf(configuration.logLevel) !== -1) {
      console.debug(...args)
    }
  },
  log(...args) {
    if (['debug', 'log'].indexOf(configuration.logLevel) !== -1) {
      console.log(...args)
    }
  },
  warn(...args) {
    if (['debug', 'log', 'warn'].indexOf(configuration.logLevel) !== -1) {
      console.warn(...args)
    }
  },
  error(...args) {
    if (['debug', 'log', 'warn', 'error'].indexOf(configuration.logLevel) !== -1) {
      console.error(...args)
    }
  },
}

export default logger

Make IE11 consumers life (a little bit) easier
Make IE11 consumers life (a little bit) easier

Similarly to #870, provides a pure IE11 compliant includes-like for users that don't polyfill.