Fixing CARBON-14935 - Fixed regression issues introduce with Simplify Carbon Platform Logging Story improvement

This pull request depends upon:
wso2-dev/carbon-utils#17