Fixes #3766 : adding eventlog for API