Skip to content

Commit

Permalink
Use named arguments in GetLoggerMacros
Browse files Browse the repository at this point in the history
  • Loading branch information
danicheg committed Feb 28, 2024
1 parent 140db9a commit 25f26bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ import scala.reflect.macros.blackbox
* Sarah Gerweck <[email protected]>
*/
private[slf4j] class GetLoggerMacros(val c: blackbox.Context) {
final def safeCreateImpl[F](f: c.Expr[F]) = getLoggerImpl[F](f, true)
final def safeCreateImpl[F](f: c.Expr[F]) = getLoggerImpl[F](f, delayed = true)

final def unsafeCreateImpl[F](f: c.Expr[F]) = getLoggerImpl[F](f, false)
final def unsafeCreateImpl[F](f: c.Expr[F]) = getLoggerImpl[F](f, delayed = false)

private def getLoggerImpl[F](f: c.Expr[F], delayed: Boolean) = {
val loggerName = SharedLoggerNameMacro.getLoggerNameImpl(c)
Expand Down

0 comments on commit 25f26bf

Please sign in to comment.