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

logging4s.core.domain.scala Maven / Gradle / Ivy

package logging4s.core

import scala.annotation.targetName

type Identity[A] = A

type ThrowableEither[A] = Either[Throwable, A]

final case class LoggingContext(values: Seq[LoggableValue]):
  @targetName("plus") def +(other: LoggingContext): LoggingContext = LoggingContext(values ++ other.values)

object LoggingContext:
  def apply(value: LoggableValue): LoggingContext = LoggingContext(Seq(value))




© 2015 - 2024 Weber Informatics LLC | Privacy Policy