joint.all.js
function log(level) {
  if (log.level >= level) {
    console.log.apply(console, Array.prototype.slice.call(arguments, 1));
  }
}
function log(level) {
  if (log.level >= level) {
    console.log.apply(console, Array.prototype.slice.call(arguments, 1));
  }
}
/*
A global logger with the specification `log(level, message, ...)` that
will log a message to the console if `log.level >= level`.