add hook on elementinterceptor for logging