Added logging interface to Idm

Suggestion on how to add some basic exception logging to IdM.