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

slog.LoggingContext.scala Maven / Gradle / Ivy

The newest version!
package slog

trait LoggingContext[F[_]] {
  def withArg[T: StructureEncoder](
      key: String,
      value: T
  ): LoggingContext.LoggingBuilder[F]
}

object LoggingContext {
  def apply[F[_]](implicit ev: LoggingContext[F]): LoggingContext[F] = ev

  trait LoggingBuilder[F[_]] {
    def use[T](fv: F[T]): F[T]

    def withArg[T: StructureEncoder](key: String, value: T): LoggingBuilder[F]
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy