can i measure output currant on an output pin

all the devices on the circuit will require mosfets and relays its a 24vDC system. i only what to know if its possible for diagnostic fault logging purposes.