Up until now (December 2020), it was possible to add a script file to the game files that will print some information into the game console and then dump the console contents into a file.
It’s still possible to add scripts that print information, but the command that used to dump the console into a file is no longer working - it’s either broken or disabled, it is not clear.
I’m not sure what would be the best way to tackle it, but I’m imagining a call (not an event) that fetches the console content, without manually opening the console, and returning it.