tofu.logging.LoggableEnum.scala Maven / Gradle / Ivy
package tofu.logging
import enumeratum.EnumEntry
trait LoggableEnum[E <: EnumEntry] {
final implicit val logging: Loggable[E] = Loggable.stringValue.contramap(_.entryName)
}
package tofu.logging
import enumeratum.EnumEntry
trait LoggableEnum[E <: EnumEntry] {
final implicit val logging: Loggable[E] = Loggable.stringValue.contramap(_.entryName)
}