@@ -50,7 +50,7 @@ private object LoggerTakingImplicitMacro {
50
50
import c .universe ._
51
51
val underlying = q " ${c.prefix}.underlying "
52
52
val canLogEv = q " ${c.prefix}.canLogEv "
53
- q """ if ( $underlying.isErrorEnabled) {
53
+ q """ if ( $underlying.isErrorEnabled( $marker ) ) {
54
54
$underlying.error( $marker, $canLogEv.logMessage( $message, $a))
55
55
$canLogEv.afterLog( $a)
56
56
} """
@@ -60,7 +60,7 @@ private object LoggerTakingImplicitMacro {
60
60
import c .universe ._
61
61
val underlying = q " ${c.prefix}.underlying "
62
62
val canLogEv = q " ${c.prefix}.canLogEv "
63
- q """ if ( $underlying.isErrorEnabled) {
63
+ q """ if ( $underlying.isErrorEnabled( $marker ) ) {
64
64
$underlying.error( $marker, $canLogEv.logMessage( $message, $a), $cause)
65
65
$canLogEv.afterLog( $a)
66
66
} """
@@ -71,12 +71,12 @@ private object LoggerTakingImplicitMacro {
71
71
val underlying = q " ${c.prefix}.underlying "
72
72
val canLogEv = q " ${c.prefix}.canLogEv "
73
73
if (args.length == 2 ) {
74
- q """ if ( $underlying.isErrorEnabled) {
74
+ q """ if ( $underlying.isErrorEnabled( $marker ) ) {
75
75
$underlying.error( $marker, $canLogEv.logMessage( $message, $a), List( ${args(0 )}, ${args(1 )}): _*)
76
76
$canLogEv.afterLog( $a)
77
77
} """
78
78
} else {
79
- q """ if ( $underlying.isErrorEnabled) {
79
+ q """ if ( $underlying.isErrorEnabled( $marker ) ) {
80
80
$underlying.error( $marker, $canLogEv.logMessage( $message, $a), .. $args)
81
81
$canLogEv.afterLog( $a)
82
82
} """
@@ -126,7 +126,7 @@ private object LoggerTakingImplicitMacro {
126
126
import c .universe ._
127
127
val underlying = q " ${c.prefix}.underlying "
128
128
val canLogEv = q " ${c.prefix}.canLogEv "
129
- q """ if ( $underlying.isWarnEnabled) {
129
+ q """ if ( $underlying.isWarnEnabled( $marker ) ) {
130
130
$underlying.warn( $marker, $canLogEv.logMessage( $message, $a))
131
131
$canLogEv.afterLog( $a)
132
132
} """
@@ -136,7 +136,7 @@ private object LoggerTakingImplicitMacro {
136
136
import c .universe ._
137
137
val underlying = q " ${c.prefix}.underlying "
138
138
val canLogEv = q " ${c.prefix}.canLogEv "
139
- q """ if ( $underlying.isWarnEnabled) {
139
+ q """ if ( $underlying.isWarnEnabled( $marker ) ) {
140
140
$underlying.warn( $marker, $canLogEv.logMessage( $message, $a), $cause)
141
141
$canLogEv.afterLog( $a)
142
142
} """
@@ -147,12 +147,12 @@ private object LoggerTakingImplicitMacro {
147
147
val underlying = q " ${c.prefix}.underlying "
148
148
val canLogEv = q " ${c.prefix}.canLogEv "
149
149
if (args.length == 2 ) {
150
- q """ if ( $underlying.isWarnEnabled) {
150
+ q """ if ( $underlying.isWarnEnabled( $marker ) ) {
151
151
$underlying.warn( $marker, $canLogEv.logMessage( $message, $a), List( ${args(0 )}, ${args(1 )}): _*)
152
152
$canLogEv.afterLog( $a)
153
153
} """
154
154
} else {
155
- q """ if ( $underlying.isWarnEnabled) {
155
+ q """ if ( $underlying.isWarnEnabled( $marker ) ) {
156
156
$underlying.warn( $marker, $canLogEv.logMessage( $message, $a), .. $args)
157
157
$canLogEv.afterLog( $a)
158
158
} """
@@ -202,7 +202,7 @@ private object LoggerTakingImplicitMacro {
202
202
import c .universe ._
203
203
val underlying = q " ${c.prefix}.underlying "
204
204
val canLogEv = q " ${c.prefix}.canLogEv "
205
- q """ if ( $underlying.isInfoEnabled) {
205
+ q """ if ( $underlying.isInfoEnabled( $marker ) ) {
206
206
$underlying.info( $marker, $canLogEv.logMessage( $message, $a))
207
207
$canLogEv.afterLog( $a)
208
208
} """
@@ -212,7 +212,7 @@ private object LoggerTakingImplicitMacro {
212
212
import c .universe ._
213
213
val underlying = q " ${c.prefix}.underlying "
214
214
val canLogEv = q " ${c.prefix}.canLogEv "
215
- q """ if ( $underlying.isInfoEnabled) {
215
+ q """ if ( $underlying.isInfoEnabled( $marker ) ) {
216
216
$underlying.info( $marker, $canLogEv.logMessage( $message, $a), $cause)
217
217
$canLogEv.afterLog( $a)
218
218
} """
@@ -223,12 +223,12 @@ private object LoggerTakingImplicitMacro {
223
223
val underlying = q " ${c.prefix}.underlying "
224
224
val canLogEv = q " ${c.prefix}.canLogEv "
225
225
if (args.length == 2 ) {
226
- q """ if ( $underlying.isInfoEnabled) {
226
+ q """ if ( $underlying.isInfoEnabled( $marker ) ) {
227
227
$underlying.info( $marker, $canLogEv.logMessage( $message, $a), List( ${args(0 )}, ${args(1 )}): _*)
228
228
$canLogEv.afterLog( $a)
229
229
} """
230
230
} else {
231
- q """ if ( $underlying.isInfoEnabled) {
231
+ q """ if ( $underlying.isInfoEnabled( $marker ) ) {
232
232
$underlying.info( $marker, $canLogEv.logMessage( $message, $a), .. $args)
233
233
$canLogEv.afterLog( $a)
234
234
} """
@@ -278,7 +278,7 @@ private object LoggerTakingImplicitMacro {
278
278
import c .universe ._
279
279
val underlying = q " ${c.prefix}.underlying "
280
280
val canLogEv = q " ${c.prefix}.canLogEv "
281
- q """ if ( $underlying.isDebugEnabled) {
281
+ q """ if ( $underlying.isDebugEnabled( $marker ) ) {
282
282
$underlying.debug( $marker, $canLogEv.logMessage( $message, $a))
283
283
$canLogEv.afterLog( $a)
284
284
} """
@@ -288,7 +288,7 @@ private object LoggerTakingImplicitMacro {
288
288
import c .universe ._
289
289
val underlying = q " ${c.prefix}.underlying "
290
290
val canLogEv = q " ${c.prefix}.canLogEv "
291
- q """ if ( $underlying.isDebugEnabled) {
291
+ q """ if ( $underlying.isDebugEnabled( $marker ) ) {
292
292
$underlying.debug( $marker, $canLogEv.logMessage( $message, $a), $cause)
293
293
$canLogEv.afterLog( $a)
294
294
} """
@@ -299,12 +299,12 @@ private object LoggerTakingImplicitMacro {
299
299
val underlying = q " ${c.prefix}.underlying "
300
300
val canLogEv = q " ${c.prefix}.canLogEv "
301
301
if (args.length == 2 ) {
302
- q """ if ( $underlying.isDebugEnabled) {
302
+ q """ if ( $underlying.isDebugEnabled( $marker ) ) {
303
303
$underlying.debug( $marker, $canLogEv.logMessage( $message, $a), List( ${args(0 )}, ${args(1 )}): _*)
304
304
$canLogEv.afterLog( $a)
305
305
} """
306
306
} else {
307
- q """ if ( $underlying.isDebugEnabled) {
307
+ q """ if ( $underlying.isDebugEnabled( $marker ) ) {
308
308
$underlying.debug( $marker, $canLogEv.logMessage( $message, $a), .. $args)
309
309
$canLogEv.afterLog( $a)
310
310
} """
@@ -354,7 +354,7 @@ private object LoggerTakingImplicitMacro {
354
354
import c .universe ._
355
355
val underlying = q " ${c.prefix}.underlying "
356
356
val canLogEv = q " ${c.prefix}.canLogEv "
357
- q """ if ( $underlying.isTraceEnabled) {
357
+ q """ if ( $underlying.isTraceEnabled( $marker ) ) {
358
358
$underlying.trace( $marker, $canLogEv.logMessage( $message, $a))
359
359
$canLogEv.afterLog( $a)
360
360
} """
@@ -364,7 +364,7 @@ private object LoggerTakingImplicitMacro {
364
364
import c .universe ._
365
365
val underlying = q " ${c.prefix}.underlying "
366
366
val canLogEv = q " ${c.prefix}.canLogEv "
367
- q """ if ( $underlying.isTraceEnabled) {
367
+ q """ if ( $underlying.isTraceEnabled( $marker ) ) {
368
368
$underlying.trace( $marker, $canLogEv.logMessage( $message, $a), $cause)
369
369
$canLogEv.afterLog( $a)
370
370
} """
@@ -375,12 +375,12 @@ private object LoggerTakingImplicitMacro {
375
375
val underlying = q " ${c.prefix}.underlying "
376
376
val canLogEv = q " ${c.prefix}.canLogEv "
377
377
if (args.length == 2 ) {
378
- q """ if ( $underlying.isTraceEnabled) {
378
+ q """ if ( $underlying.isTraceEnabled( $marker ) ) {
379
379
$underlying.trace( $marker, $canLogEv.logMessage( $message, $a), List( ${args(0 )}, ${args(1 )}): _*)
380
380
$canLogEv.afterLog( $a)
381
381
} """
382
382
} else {
383
- q """ if ( $underlying.isTraceEnabled) {
383
+ q """ if ( $underlying.isTraceEnabled( $marker ) ) {
384
384
$underlying.trace( $marker, $canLogEv.logMessage( $message, $a), .. $args)
385
385
$canLogEv.afterLog( $a)
386
386
} """
0 commit comments