Your comments

It does not seem to log after the first learning/scan. Need to work on the setup maybe.  
Sorry for the late reply. I have tried this, and it does not work. I think the difference is that a magnetic switch is sending on and off signals, while the doorbell is only sending on... So the log only shows the status on all the time.