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 b5e1cc6 commit 0c95a01
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 0c95a01

Please sign in to comment.