File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,16 @@ export class Log {
25
25
setLevel ( level : number ) {
26
26
this . level = level ;
27
27
if ( level >= Log . ASSERT ) this . assert = console . assert . bind ( console ) ;
28
- else this . assert = function ( ) { } ;
28
+ else this . assert = ( ) => { } ;
29
29
if ( level >= Log . ERROR ) this . error = console . error . bind ( console ) ;
30
- else this . error = function ( ) { } ;
30
+ else this . error = ( ) => { } ;
31
31
if ( level >= Log . WARN ) this . warn = console . warn . bind ( console ) ;
32
- else this . warn = function ( ) { } ;
32
+ else this . warn = ( ) => { } ;
33
33
if ( level >= Log . INFO ) this . info = console . info . bind ( console ) ;
34
- else this . info = function ( ) { } ;
34
+ else this . info = ( ) => { } ;
35
35
if ( level >= Log . DEBUG ) this . debug = console . debug . bind ( console ) ;
36
- else this . debug = function ( ) { } ;
36
+ else this . debug = ( ) => { } ;
37
37
if ( level >= Log . TRACE ) this . trace = console . log . bind ( console ) ;
38
- else this . trace = function ( ) { } ;
38
+ else this . trace = ( ) => { } ;
39
39
}
40
40
}
You can’t perform that action at this time.
0 commit comments