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 Objecttrait Matchableclass Any