Reordered logging