app/com/gu/memsub/promo/LogImplicit.scala (10 lines of code) (raw):
package com.gu.memsub.promo
import com.typesafe.scalalogging.StrictLogging
object LogImplicit extends StrictLogging {
implicit class Loggable[T](t: T) {
def withLogging(message: String): T = {
logger.info(s"$message {$t}")
t
}
}
}