package Ġcom . github . f rt u . coroutine . web client . intercept ors Ċ Ċ import Ġcom . github . f rt u . logs . core . Rpc Logger Ċ import Ġcom . github . f rt u . logs . core . Rpc Logger .* Ċ import Ġorg . slf 4 j . Logger Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġorg . springframework . web . reactive . function . client . Client Request Ċ import Ġorg . springframework . web . reactive . function . client . ClientResponse Ċ import Ġorg . springframework . web . reactive . function . client . Exchange Filter Function Ċ import Ġorg . springframework . web . reactive . function . client . Exchange Function Ċ import Ġreactor . core . publisher . Mono Ċ Ċ class ĠBasic Log Exchange Filter Function ( logger : ĠLogger Ġ= ĠLoggerFactory . getLogger ( Basic Log Exchange Filter Function :: class . java )) Ġ: ĊĠĠĠ ĠExchange Filter Function Ġ{ ĊĠĠĠ Ġprivate Ġval Ġrpc Logger Ġ= ĠRpc Logger . create ( logger ) ĊĊĠĠĠ Ġoverride Ġfun Ġfilter ( client Request : ĠClient Request , Ġnext : ĠExchange Function ): ĠMono < ClientResponse > Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġentries Ġ= Ġentries ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġclient (), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmethod ( client Request . method (). toString ()), ĊĠĠĠĠĠĠĠĠĠĠĠ Ġuri ( client Request . url (). toString ()) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġrpc Logger . info ( entries ); ĊĠĠĠĠĠĠĠ Ġreturn Ġnext . exchange ( client Request ); ĊĠĠĠ Ġ} Ċ }