package Ġcom . example . network recording . network Ċ Ċ import Ġandroid . util . Log Ċ import Ġokhttp 3 . Interceptor Ċ import Ġokhttp 3 . Response Ċ Ċ class ĠLogging Interceptor : ĠInter ceptor Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġintercept ( chain : ĠInter ceptor . Chain ): ĠResponse Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġrequest Ġ= Ġchain . request () ĊĠĠĠĠĠĠĠ Ġval Ġresponse : ĠResponse Ġ= Ġchain . proceed ( request ) ĊĊĠĠĠĠĠĠĠ ĠLog . d (" re corded ", Ġ" Request : Ġ$ request ") ĊĠĠĠĠĠĠĠ ĠLog . d (" re corded ", Ġ" Response : Ġ$ response ") ĊĠĠĠĠĠĠĠ Ġreturn Ġresponse ĊĠĠĠ Ġ} Ċ }