How to view log of crash pod of a deployment

I know I can view logs of a crash pod by using
kubectl logs <POD_NAME> --previous

But if a pod belongs to a deployment, when it crashes, a new pod with a different name is going to be created.
I can no longer know the crashed pod name.
How can I find the log of the crashed pod?
And how can I even know if/wa pod of