Fixing  log entries to plain text