Log to the correct object.