MDCCloseable function ( String arg0 , String arg1 ) { put ( arg0 , arg1 ) ; return new MDCCloseable ( arg0 ) ; }
put a diagnostic context value the val parameter as identified with the key parameter into the current thread 's diagnostic context map . the key parameter can not be null . the val parameter can be null only if the underlying implementation supports it . this method delegates all work to the mdc of the underlying logging system . this method return a closeable object who can remove key when close is called . useful with java 7 for example : try mdc.mdccloseable closeable = mdc.putcloseable key , value ... concode_field_sep String NO_STATIC_MDC_BINDER_URL concode_elem_sep MDCAdapter mdcAdapter concode_elem_sep String NULL_MDCA_URL concode_elem_sep String key concode_field_sep Map<String,String> getCopyOfContextMap concode_elem_sep String get concode_elem_sep MDCAdapter bwCompatibleGetMDCAdapterFromBinder concode_elem_sep void clear concode_elem_sep void setContextMap concode_elem_sep void close concode_elem_sep void put concode_elem_sep void remove concode_elem_sep MDCAdapter getMDCAdapter