Rewrites Log with type and format logical branching