ScriptBasedLocation

com.tersesystems.blindsight.scripting.ScriptBasedLocation

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!")
}

Attributes

default

the default to return if the script does not complete.

sm

the script manager

Source:
ScriptBasedLocation.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Classlikes

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

Attributes

Source:
ScriptBasedLocation.scala
Graph
Supertypes
trait Condition
trait (Level, Markers) => Boolean
class Object
trait Matchable
class Any

Value members

Concrete methods

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

Attributes

Source:
ScriptBasedLocation.scala