All Downloads are FREE. Search and download functionalities are using the official Maven repository.

a8.common.logging.Level.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0-20240213_1428_master
Show newest version
package a8.common.logging

object Level {
  given CanEqual[Level, Level] = CanEqual.derived
  lazy val valuesByLc = values.map(l => l.name.toLowerCase -> l).toMap
}

enum Level extends Ordered[Level] {

  case All, Trace, Debug, Info, Warn, Error, Fatal, Off

  lazy val name = productPrefix
  lazy val nameUpper = name.toUpperCase
  lazy val nameLower = name.toLowerCase

  override def compare(that: Level): Int =
    ordinal.compare(that.ordinal)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy