Added alert handling to ILogger and SdLogger

Tested both measurements and alerts (alarms) events.