package xyz.driver.common import java.time.{LocalDateTime, ZoneId} import xyz.driver.common.domain.{LongId, User} import xyz.driver.common.logging._ object TimeLogger extends PhiLogging { def logTime(userId: LongId[User], label: String, obj: String): Unit = { val now = LocalDateTime.now(ZoneId.of("Z")) logger.info(phi"User id=$userId performed an action at ${Unsafe(label)}=$now with a ${Unsafe(obj)} ") } }