Write each log into a separate section