-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use named arguments in GetLoggerMacros
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|