Mode

krop.Mode
See theMode companion object
enum Mode

Krop can run in one of two modes: development and production. In development mode it shows output that is useful for debugging and otherwise inspecting the running state. In production this output is hidden.

The mode is set by the krop.mode JVM system property. If it has the value of "development" (without the quotes; any capitalization is fine) then the mode is development. Otherwise it is production.

The mode is determined when Krop starts.

Attributes

Companion
object
Source
Mode.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case case Development extends Mode

Attributes

Source
Mode.scala
case case Production extends Mode

Attributes

Source
Mode.scala