Added log manager to add flexibility to logging in different loglevels.