I have different libraries added to my flutter application. I'm implementing a feature in the application where whenever an error or message is printed to the console from any library or error message, I want to send that error or message string to the server.
How can I listen to console in flutter programmatically so whenever a string is printed to the console I can capture it to send it to the server later?