issues related to logging in storage implementation fixed.

Jira created to track this
https://wso2.org/jira/browse/MB-860