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))