fixed logger api to be correct instance level