OpenFire and get connect/disconnect notifications to push to other systems?

Being new to XMPP and OpenFire i am looking for a way to get notifications when users connect and disconnect from a server. I would like to push these notifications to others systems, for logging purposes for example. Is there an easy way on how an external program could get notified when users connect/disconnect? Or do i need to write a plugin for this?