Scala - Enumeration vs. Case-Classes
- by tzofia
I've created akka actor called LogActor.
The LogActors's receive method handling messages from other actors and logging them to the specified log level.
I can distinguish between the different levels in 2 ways. The first one:
import LogLevel._
object LogLevel extends Enumeration {
type LogLevel = Value
val Error, Warning, Info, Debug =…