For attended robots developed by citizen developers, can we add standard code that will enable logging an error in a central console for tracking?

Yes, one can detect the presence of such standard code via workflow analyzer check and if code is not present, send back to the developer for fixes; logging steps can be done to write to Orchestrator logs.

For more info https://docs.uipath.com/studiox/docs/audit-logging