@@ -22,7 +22,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
22
22
23
23
def errorMessageArgs [A : Type ](underlying : Expr [Underlying ], canLogEv : Expr [CanLog [A ]], message : Expr [String ], args : Expr [Seq [Any ]])(a : Expr [A ])(using Quotes ): Expr [Unit ] = {
24
24
val formatedArgs = LoggerMacro .formatArgs(args)
25
- if (formatedArgs.length == 1 )
25
+ if (formatedArgs.lengthIs == 1 )
26
26
' {if ($underlying.isErrorEnabled) {
27
27
$underlying.error($canLogEv.logMessage($message, $a), $ {formatedArgs.head})
28
28
$canLogEv.afterLog($a)
@@ -48,7 +48,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
48
48
49
49
def errorMessageArgsMarker [A : Type ](underlying : Expr [Underlying ], canLogEv : Expr [CanLog [A ]], marker : Expr [Marker ], message : Expr [String ], args : Expr [Seq [Any ]])(a : Expr [A ])(using Quotes ): Expr [Unit ] = {
50
50
val formatedArgs = LoggerMacro .formatArgs(args)
51
- if (formatedArgs.length == 1 )
51
+ if (formatedArgs.lengthIs == 1 )
52
52
' {if ($underlying.isErrorEnabled($marker)) {
53
53
$underlying.error($marker, $canLogEv.logMessage($message, $a), $ {formatedArgs.head})
54
54
$canLogEv.afterLog($a)
@@ -82,7 +82,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
82
82
83
83
def warnMessageArgs [A : Type ](underlying : Expr [Underlying ], canLogEv : Expr [CanLog [A ]], message : Expr [String ], args : Expr [Seq [Any ]])(a : Expr [A ])(using Quotes ): Expr [Unit ] = {
84
84
val formatedArgs = LoggerMacro .formatArgs(args)
85
- if (formatedArgs.length == 1 )
85
+ if (formatedArgs.lengthIs == 1 )
86
86
' {if ($underlying.isWarnEnabled) {
87
87
$underlying.warn($canLogEv.logMessage($message, $a), $ {formatedArgs.head})
88
88
$canLogEv.afterLog($a)
@@ -108,7 +108,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
108
108
109
109
def warnMessageArgsMarker [A : Type ](underlying : Expr [Underlying ], canLogEv : Expr [CanLog [A ]], marker : Expr [Marker ], message : Expr [String ], args : Expr [Seq [Any ]])(a : Expr [A ])(using Quotes ): Expr [Unit ] = {
110
110
val formatedArgs = LoggerMacro .formatArgs(args)
111
- if (formatedArgs.length == 1 )
111
+ if (formatedArgs.lengthIs == 1 )
112
112
' {if ($underlying.isWarnEnabled($marker)) {
113
113
$underlying.warn($marker, $canLogEv.logMessage($message, $a), $ {formatedArgs.head})
114
114
$canLogEv.afterLog($a)
@@ -143,7 +143,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
143
143
144
144
def infoMessageArgs [A : Type ](underlying : Expr [Underlying ], canLogEv : Expr [CanLog [A ]], message : Expr [String ], args : Expr [Seq [Any ]])(a : Expr [A ])(using Quotes ): Expr [Unit ] = {
145
145
val formatedArgs = LoggerMacro .formatArgs(args)
146
- if (formatedArgs.length == 1 )
146
+ if (formatedArgs.lengthIs == 1 )
147
147
' {if ($underlying.isInfoEnabled) {
148
148
$underlying.info($canLogEv.logMessage($message, $a), $ {formatedArgs.head})
149
149
$canLogEv.afterLog($a)
@@ -169,7 +169,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
169
169
170
170
def infoMessageArgsMarker [A : Type ](underlying : Expr [Underlying ], canLogEv : Expr [CanLog [A ]], marker : Expr [Marker ], message : Expr [String ], args : Expr [Seq [Any ]])(a : Expr [A ])(using Quotes ): Expr [Unit ] = {
171
171
val formatedArgs = LoggerMacro .formatArgs(args)
172
- if (formatedArgs.length == 1 )
172
+ if (formatedArgs.lengthIs == 1 )
173
173
' {if ($underlying.isInfoEnabled($marker)) {
174
174
$underlying.info($marker, $canLogEv.logMessage($message, $a), $ {formatedArgs.head})
175
175
$canLogEv.afterLog($a)
@@ -204,7 +204,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
204
204
205
205
def debugMessageArgs [A : Type ](underlying : Expr [Underlying ], canLogEv : Expr [CanLog [A ]], message : Expr [String ], args : Expr [Seq [Any ]])(a : Expr [A ])(using Quotes ): Expr [Unit ] = {
206
206
val formatedArgs = LoggerMacro .formatArgs(args)
207
- if (formatedArgs.length == 1 )
207
+ if (formatedArgs.lengthIs == 1 )
208
208
' {if ($underlying.isDebugEnabled) {
209
209
$underlying.debug($canLogEv.logMessage($message, $a), $ {formatedArgs.head})
210
210
$canLogEv.afterLog($a)
@@ -230,7 +230,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
230
230
231
231
def debugMessageArgsMarker [A : Type ](underlying : Expr [Underlying ], canLogEv : Expr [CanLog [A ]], marker : Expr [Marker ], message : Expr [String ], args : Expr [Seq [Any ]])(a : Expr [A ])(using Quotes ): Expr [Unit ] = {
232
232
val formatedArgs = LoggerMacro .formatArgs(args)
233
- if (formatedArgs.length == 1 )
233
+ if (formatedArgs.lengthIs == 1 )
234
234
' {if ($underlying.isDebugEnabled($marker)) {
235
235
$underlying.debug($marker, $canLogEv.logMessage($message, $a), $ {formatedArgs.head})
236
236
$canLogEv.afterLog($a)
@@ -265,7 +265,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
265
265
266
266
def traceMessageArgs [A : Type ](underlying : Expr [Underlying ], canLogEv : Expr [CanLog [A ]], message : Expr [String ], args : Expr [Seq [Any ]])(a : Expr [A ])(using Quotes ): Expr [Unit ] = {
267
267
val formatedArgs = LoggerMacro .formatArgs(args)
268
- if (formatedArgs.length == 1 )
268
+ if (formatedArgs.lengthIs == 1 )
269
269
' {if ($underlying.isTraceEnabled) {
270
270
$underlying.trace($canLogEv.logMessage($message, $a), $ {formatedArgs.head})
271
271
$canLogEv.afterLog($a)
@@ -291,7 +291,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
291
291
292
292
def traceMessageArgsMarker [A : Type ](underlying : Expr [Underlying ], canLogEv : Expr [CanLog [A ]], marker : Expr [Marker ], message : Expr [String ], args : Expr [Seq [Any ]])(a : Expr [A ])(using Quotes ): Expr [Unit ] = {
293
293
val formatedArgs = LoggerMacro .formatArgs(args)
294
- if (formatedArgs.length == 1 )
294
+ if (formatedArgs.lengthIs == 1 )
295
295
' {if ($underlying.isTraceEnabled($marker)) {
296
296
$underlying.trace($marker, $canLogEv.logMessage($message, $a), $ {formatedArgs.head})
297
297
$canLogEv.afterLog($a)
0 commit comments