use console.log as default

This commit is contained in:
2017-09-19 17:48:56 +02:00
parent a8b760165d
commit 068c19704b
3 changed files with 7 additions and 4 deletions

View File

@ -7,7 +7,7 @@ export class SmartDebug {
/**
* enables debugging output
*/
enableDebugging (debugLogFunction = null) {
enableDebugging (debugLogFunction = console.log) {
this.debugEnabled = true
this.debugLogFunction = debugLogFunction
}