Updated logger so that compatible with rhel7