smartdebug/ts/index.ts
2017-09-19 17:58:59 +02:00

23 lines
394 B
TypeScript

import * as plugins from './smartdebug.plugins'
export class SmartDebug {
private debugEnabled: boolean = false
/**
* enables debugging output
*/
enableDebugging () {
this.debugEnabled = true
}
/**
* logs a message based on the contraints of the SmartDebug instance
*/
log (logObject: any) {
if (this.debugEnabled) {
console.log(logObject)
}
}
}