normalize log messages