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 Mar 2, 2024
1 parent 60c7003 commit d5f0c99
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 d5f0c99

Please sign in to comment.