For places where it's tempting to use console.log or similar functions it would be better to actually run the messages to an OS-appropriate logging solution. Update the application to use a consistent logging service like electron-log or another suitable alternative. Support scripts in scripts do not need to leverage it, but any place in the main application where console is used should be used to use the new service.
As part of this update also add IPC support to allow renderers to also save log messages via the main logging service. The library for this should be shared across all games and not implemented uniquely each time.
Also propose updates to the copilot instructions file to instruct future agents to use the new service.
For places where it's tempting to use
console.logor similar functions it would be better to actually run the messages to an OS-appropriate logging solution. Update the application to use a consistent logging service likeelectron-logor another suitable alternative. Support scripts inscriptsdo not need to leverage it, but any place in the main application whereconsoleis used should be used to use the new service.As part of this update also add IPC support to allow renderers to also save log messages via the main logging service. The library for this should be shared across all games and not implemented uniquely each time.
Also propose updates to the copilot instructions file to instruct future agents to use the new service.