@@ -29,8 +29,9 @@ export class Logger {
29
29
*/
30
30
public fatal ( ...args : any [ ] ) : void ;
31
31
public fatal ( marker : Marker , ...args : NotMarker [ ] ) : void {
32
+ const passed = arguments ;
32
33
this . _appenders . forEach ( ( appender ) =>
33
- appender . append ( this . _constructLogEvent ( LogLevel . FATAL , arguments ) ) ) ;
34
+ appender . append ( this . _constructLogEvent ( LogLevel . FATAL , passed ) ) ) ;
34
35
}
35
36
36
37
/**
@@ -41,8 +42,9 @@ export class Logger {
41
42
*/
42
43
public error ( ...args : any [ ] ) : void ;
43
44
public error ( marker : Marker , ...args : NotMarker [ ] ) : void {
45
+ const passed = arguments ;
44
46
this . _appenders . forEach ( ( appender ) =>
45
- appender . append ( this . _constructLogEvent ( LogLevel . ERROR , arguments ) ) ) ;
47
+ appender . append ( this . _constructLogEvent ( LogLevel . ERROR , passed ) ) ) ;
46
48
}
47
49
48
50
/**
@@ -53,8 +55,9 @@ export class Logger {
53
55
*/
54
56
public warn ( ...args : any [ ] ) : void ;
55
57
public warn ( marker : Marker , ...args : NotMarker [ ] ) : void {
58
+ const passed = arguments ;
56
59
this . _appenders . forEach ( ( appender ) =>
57
- appender . append ( this . _constructLogEvent ( LogLevel . WARN , arguments ) ) ) ;
60
+ appender . append ( this . _constructLogEvent ( LogLevel . WARN , passed ) ) ) ;
58
61
}
59
62
60
63
/**
@@ -65,8 +68,9 @@ export class Logger {
65
68
*/
66
69
public info ( ...args : any [ ] ) : void ;
67
70
public info ( marker : Marker , ...args : NotMarker [ ] ) : void {
71
+ const passed = arguments ;
68
72
this . _appenders . forEach ( ( appender ) =>
69
- appender . append ( this . _constructLogEvent ( LogLevel . INFO , arguments ) ) ) ;
73
+ appender . append ( this . _constructLogEvent ( LogLevel . INFO , passed ) ) ) ;
70
74
}
71
75
72
76
/**
@@ -77,8 +81,9 @@ export class Logger {
77
81
*/
78
82
public debug ( ...args : any [ ] ) : void ;
79
83
public debug ( marker : Marker , ...args : NotMarker [ ] ) : void {
84
+ const passed = arguments ;
80
85
this . _appenders . forEach ( ( appender ) =>
81
- appender . append ( this . _constructLogEvent ( LogLevel . DEBUG , arguments ) ) ) ;
86
+ appender . append ( this . _constructLogEvent ( LogLevel . DEBUG , passed ) ) ) ;
82
87
}
83
88
84
89
/**
@@ -89,8 +94,9 @@ export class Logger {
89
94
*/
90
95
public trace ( ...args : any [ ] ) : void ;
91
96
public trace ( marker : Marker , ...args : NotMarker [ ] ) : void {
97
+ const passed = arguments ;
92
98
this . _appenders . forEach ( ( appender ) =>
93
- appender . append ( this . _constructLogEvent ( LogLevel . TRACE , arguments ) ) ) ;
99
+ appender . append ( this . _constructLogEvent ( LogLevel . TRACE , passed ) ) ) ;
94
100
}
95
101
96
102
/**
0 commit comments