Normalize log message format