Reformat event before writting on stdout