Create a log when user join/abandoned in a og group in Drupal 7
Heartbeat module is the one to try. 

I didn't tested it myself, but I read in its description that it's "an API to log activity".

It seems to support OG activity.