Reorganize log