Re-organizing logs