Logs for exited containers

How to check the logs of all the exited containers? for ex: The below command will give you all the exited containers. is there any way to check the logs using a single command?

to check all the exited containers - “docker ps -a -q -f status=exited”