scala.tools.nsc.interpreter.Logger.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.scala-compiler
Show all versions of org.apache.servicemix.bundles.scala-compiler
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
/* NSC -- new Scala compiler
* Copyright 2005-2011 LAMP/EPFL
* @author Paul Phillips
*/
package scala.tools.nsc
package interpreter
trait Logger {
def isInfo: Boolean
def isDebug: Boolean
def isTrace: Boolean
def out: JPrintWriter
def info(msg: => Any): Unit = if (isInfo) out println msg
def debug(msg: => Any): Unit = if (isDebug) out println msg
def trace(msg: => Any): Unit = if (isTrace) out println msg
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy