@@ -22,7 +22,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
2222
2323 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 ] = {
2424 val formatedArgs = LoggerMacro .formatArgs(args)
25- if (formatedArgs.length == 1 )
25+ if (formatedArgs.lengthIs == 1 )
2626 ' {if ($underlying.isErrorEnabled) {
2727 $underlying.error($canLogEv.logMessage($message, $a), $ {formatedArgs.head})
2828 $canLogEv.afterLog($a)
@@ -48,7 +48,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
4848
4949 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 ] = {
5050 val formatedArgs = LoggerMacro .formatArgs(args)
51- if (formatedArgs.length == 1 )
51+ if (formatedArgs.lengthIs == 1 )
5252 ' {if ($underlying.isErrorEnabled($marker)) {
5353 $underlying.error($marker, $canLogEv.logMessage($message, $a), $ {formatedArgs.head})
5454 $canLogEv.afterLog($a)
@@ -82,7 +82,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
8282
8383 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 ] = {
8484 val formatedArgs = LoggerMacro .formatArgs(args)
85- if (formatedArgs.length == 1 )
85+ if (formatedArgs.lengthIs == 1 )
8686 ' {if ($underlying.isWarnEnabled) {
8787 $underlying.warn($canLogEv.logMessage($message, $a), $ {formatedArgs.head})
8888 $canLogEv.afterLog($a)
@@ -108,7 +108,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
108108
109109 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 ] = {
110110 val formatedArgs = LoggerMacro .formatArgs(args)
111- if (formatedArgs.length == 1 )
111+ if (formatedArgs.lengthIs == 1 )
112112 ' {if ($underlying.isWarnEnabled($marker)) {
113113 $underlying.warn($marker, $canLogEv.logMessage($message, $a), $ {formatedArgs.head})
114114 $canLogEv.afterLog($a)
@@ -143,7 +143,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
143143
144144 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 ] = {
145145 val formatedArgs = LoggerMacro .formatArgs(args)
146- if (formatedArgs.length == 1 )
146+ if (formatedArgs.lengthIs == 1 )
147147 ' {if ($underlying.isInfoEnabled) {
148148 $underlying.info($canLogEv.logMessage($message, $a), $ {formatedArgs.head})
149149 $canLogEv.afterLog($a)
@@ -169,7 +169,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
169169
170170 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 ] = {
171171 val formatedArgs = LoggerMacro .formatArgs(args)
172- if (formatedArgs.length == 1 )
172+ if (formatedArgs.lengthIs == 1 )
173173 ' {if ($underlying.isInfoEnabled($marker)) {
174174 $underlying.info($marker, $canLogEv.logMessage($message, $a), $ {formatedArgs.head})
175175 $canLogEv.afterLog($a)
@@ -204,7 +204,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
204204
205205 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 ] = {
206206 val formatedArgs = LoggerMacro .formatArgs(args)
207- if (formatedArgs.length == 1 )
207+ if (formatedArgs.lengthIs == 1 )
208208 ' {if ($underlying.isDebugEnabled) {
209209 $underlying.debug($canLogEv.logMessage($message, $a), $ {formatedArgs.head})
210210 $canLogEv.afterLog($a)
@@ -230,7 +230,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
230230
231231 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 ] = {
232232 val formatedArgs = LoggerMacro .formatArgs(args)
233- if (formatedArgs.length == 1 )
233+ if (formatedArgs.lengthIs == 1 )
234234 ' {if ($underlying.isDebugEnabled($marker)) {
235235 $underlying.debug($marker, $canLogEv.logMessage($message, $a), $ {formatedArgs.head})
236236 $canLogEv.afterLog($a)
@@ -265,7 +265,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
265265
266266 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 ] = {
267267 val formatedArgs = LoggerMacro .formatArgs(args)
268- if (formatedArgs.length == 1 )
268+ if (formatedArgs.lengthIs == 1 )
269269 ' {if ($underlying.isTraceEnabled) {
270270 $underlying.trace($canLogEv.logMessage($message, $a), $ {formatedArgs.head})
271271 $canLogEv.afterLog($a)
@@ -291,7 +291,7 @@ private[scalalogging] object LoggerTakingImplicitMacro {
291291
292292 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 ] = {
293293 val formatedArgs = LoggerMacro .formatArgs(args)
294- if (formatedArgs.length == 1 )
294+ if (formatedArgs.lengthIs == 1 )
295295 ' {if ($underlying.isTraceEnabled($marker)) {
296296 $underlying.trace($marker, $canLogEv.logMessage($message, $a), $ {formatedArgs.head})
297297 $canLogEv.afterLog($a)
0 commit comments