Added api log option (issue #2324)