Log cloud connection

I would like to be able to log date and time I lose or regain connection to the cloud.