networked-aframe
Version:
A web framework for building multi-user virtual reality experiences.
28 lines (21 loc) • 378 B
JavaScript
/*eslint no-console: "off" */
class NafLogger {
constructor() {
this.debug = false;
}
setDebug(debug) {
this.debug = debug;
}
write() {
if (this.debug) {
console.log.apply(this, arguments);
}
}
warn() {
console.warn.apply(this, arguments);
}
error() {
console.error.apply(this, arguments);
}
}
module.exports = NafLogger;