Get Execution Logs

Node-RED is still code. You can do what is done in Node-RED from any of the supported programming languages. There are a few examples on the forum; here is one:

Then you parse each message you receive in the queue, and one of those types will contain the console output.