Save events in files

Hello,

Docker events doesn’t save events in files. In case of crash, I need to known the status of all container. I must detect OOM even after host reboot.

How to automatically save events in files?

Thanks