make resource logger singleton