Docker-compose pull logs

I’m having trouble finding the answer to my question. Ideally what I want to be able to do view or write a log file every time docker-compose pull actually pulls a new image from a repository.

Let’s say for example i have a docker-compose file with 3 images inside it. If I have a script to automatically pull latest and start up an environment with these three images, I want to be able to programmatically tell which image has been updated and when.

Is this logged somewhere? If not is there anyway I can check (via API or something) if the image on the docker repository is newer than the local image?