logify (target) {
    utils.addHiddenPropsToTarget(target, {
      dbg (...args) {
        if (utils.isFunction(this.log)) {
          this.log('debug', ...args)
        }
      },
      log (level, ...args) {
        if (level && !args.length) {
          args.push(level)
          level = 'debug'
        }
        if (level === 'debug' && !this.debug) {
          return
        }
        const prefix = `${level.toUpperCase()}: (${this.name ||
          this.constructor.name})`
        if (utils.isFunction(console[level])) {
          console[level](prefix, ...args)
        } else {
          console.log(prefix, ...args)
        }
      }
    })
  }
Mix in logging capabilities to the target.

@example
import { utils } from 'js-data';
const a = { foo: "bar"};

// Add standard logging to an object
utils.logify(a);
a.log('info', 'test log info'); // output 'test log info' to console.

// Toggle debug output of an object
a.dbg('test debug output'); // does not output because debug is off.
a.debug = true;
a.dbg('test debug output'); // output 'test debug output' to console.

@method utils.logify
@param {*} target The target.
@since 3.0.0