use console.log as default
This commit is contained in:
parent
a8b760165d
commit
068c19704b
5
dist/index.d.ts
vendored
5
dist/index.d.ts
vendored
@ -4,7 +4,10 @@ export declare class SmartDebug {
|
||||
/**
|
||||
* enables debugging output
|
||||
*/
|
||||
enableDebugging(debugLogFunction?: any): void;
|
||||
enableDebugging(debugLogFunction?: {
|
||||
(message?: any, ...optionalParams: any[]): void;
|
||||
(message?: any, ...optionalParams: any[]): void;
|
||||
}): void;
|
||||
/**
|
||||
* logs a message based on the contraints of the SmartDebug instance
|
||||
*/
|
||||
|
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -8,7 +8,7 @@ class SmartDebug {
|
||||
/**
|
||||
* enables debugging output
|
||||
*/
|
||||
enableDebugging(debugLogFunction = null) {
|
||||
enableDebugging(debugLogFunction = console.log) {
|
||||
this.debugEnabled = true;
|
||||
this.debugLogFunction = debugLogFunction;
|
||||
}
|
||||
@ -25,4 +25,4 @@ class SmartDebug {
|
||||
}
|
||||
}
|
||||
exports.SmartDebug = SmartDebug;
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBO0lBQUE7UUFDRSxxQkFBZ0IsR0FBUSxJQUFJLENBQUE7UUFDcEIsaUJBQVksR0FBWSxLQUFLLENBQUE7SUFxQnZDLENBQUM7SUFuQkM7O09BRUc7SUFDSCxlQUFlLENBQUUsZ0JBQWdCLEdBQUcsSUFBSTtRQUN0QyxJQUFJLENBQUMsWUFBWSxHQUFHLElBQUksQ0FBQTtRQUN4QixJQUFJLENBQUMsZ0JBQWdCLEdBQUcsZ0JBQWdCLENBQUE7SUFDMUMsQ0FBQztJQUVEOztPQUVHO0lBQ0gsR0FBRyxDQUFFLFNBQWM7UUFDakIsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFD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0FBQztZQUM3QixPQUFPLENBQUMsR0FBRyxDQUFDLFNBQVMsQ0FBQyxDQUFBO1FBQ3hCLENBQUM7SUFDSCxDQUFDO0NBRUY7QUF2QkQsZ0NBdUJDIn0=
|
@ -7,7 +7,7 @@ export class SmartDebug {
|
||||
/**
|
||||
* enables debugging output
|
||||
*/
|
||||
enableDebugging (debugLogFunction = null) {
|
||||
enableDebugging (debugLogFunction = console.log) {
|
||||
this.debugEnabled = true
|
||||
this.debugLogFunction = debugLogFunction
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user