smartdebug/ts/index.ts

23 lines
394 B
TypeScript
Raw Normal View History

2017-09-18 13:19:18 +00:00
import * as plugins from './smartdebug.plugins'
2015-11-15 19:35:13 +00:00
2017-09-18 13:19:18 +00:00
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)
2015-11-15 19:35:13 +00:00
}
2017-09-18 13:19:18 +00:00
}
2015-11-15 19:35:13 +00:00
2017-09-18 13:19:18 +00:00
}