2017-09-18 13:19:18 +00:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
class SmartDebug {
|
|
|
|
constructor() {
|
|
|
|
this.debugEnabled = false;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* enables debugging output
|
|
|
|
*/
|
2017-09-19 15:58:59 +00:00
|
|
|
enableDebugging() {
|
2017-09-18 13:19:18 +00:00
|
|
|
this.debugEnabled = true;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* logs a message based on the contraints of the SmartDebug instance
|
|
|
|
*/
|
|
|
|
log(logObject) {
|
2017-09-19 15:58:59 +00:00
|
|
|
if (this.debugEnabled) {
|
2017-09-18 13:19:18 +00:00
|
|
|
console.log(logObject);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.SmartDebug = SmartDebug;
|
2017-09-19 15:58:59 +00:00
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBO0lBQUE7UUFDVSxpQkFBWSxHQUFZLEtBQUssQ0FBQTtJQWtCdkMsQ0FBQztJQWhCQzs7T0FFRztJQUNILGVBQWU7UUFDYixJQUFJLENBQUMsWUFBWSxHQUFHLElBQUksQ0FBQTtJQUMxQixDQUFDO0lBRUQ7O09BRUc7SUFDSCxHQUFHLENBQUUsU0FBYztRQUNqQixFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLENBQUMsQ0FBQztZQUN0QixPQUFPLENBQUMsR0FBRyxDQUFDLFNBQVMsQ0FBQyxDQUFBO1FBQ3hCLENBQUM7SUFDSCxDQUFDO0NBRUY7QUFuQkQsZ0NBbUJDIn0=
|