Fixing WSAS-1776 - Fixed regression issues introduce with Simplify Carbon Platform Logging Story improvement

This pull request depends upon:
https://github.com/wso2-dev/carbon-utils/pull/17