ScriptBasedLocation

class ScriptBasedLocation(sm: ScriptManager, default: Boolean)

A script condition manager that returns conditions tied to a script that can evaluate based on the source code.

A script condition manager that returns conditions tied to a script that can evaluate based on the source code.

This can be useful when you only want some logging statements to be evaluated on a script basis.

val location = new ScriptBasedLocation(sm, false)
logger.debug.when(location.here) { debug =>
 debug("Hello world!")
}
Value Params
default

the default to return if the script does not complete.

sm

the script manager

class Object
trait Matchable
class Any

Type members

Classlikes

class ScriptCondition(line: Line, enclosing: Enclosing, file: File) extends Condition

Value members

Concrete methods

def here(line: Line, enclosing: Enclosing, file: File): Condition