201-created/ember-cli-fake-server

View on GitHub
addon/lib/logger.js

Summary

Maintainability
A
0 mins
Test Coverage
/* eslint no-console:0 */

export function warn() {
  if (typeof console !== 'undefined') {
    console.warn(...arguments);
  }
}

export function error() {
  if (typeof console !== 'undefined') {
    console.error(...arguments);
  }
}

export function log() {
  if (typeof console !== 'undefined') {
    console.log(...arguments);
  }
}