All Downloads are FREE. Search and download functionalities are using the official Maven repository.

izumi.fundamentals.platform.reflection.TrivialMacroLogger.scala Maven / Gradle / Ivy

package izumi.fundamentals.reflection

import izumi.fundamentals.platform.console.TrivialLogger
import izumi.fundamentals.platform.console.TrivialLogger.Config

import scala.reflect.ClassTag
import scala.reflect.macros.blackbox

/**
  * To see macro debug output during compilation, set `-Dizumi.debug.macro.rtti=true` java property! e.g.
  *
  * {{{
  * sbt -Dizumi.debug.macro.rtti=true compile
  * }}}
  *
  * @see [[izumi.reflect.DebugProperties]]
  */
object TrivialMacroLogger {
  def make[T: ClassTag](c: blackbox.Context, sysProperty: String): TrivialLogger = {
    TrivialLogger.make[T](sysProperty, config = Config(sink = new ScalacSink(c)))
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy