How can I listen to call made to GD.PushError, GD.PushWarning, GD.Print

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By brunogarcia

I want to write a custom logging solution. For that, I’d like to ‘intercept’ calls such as GD.PushError, GD.PushWarning, GD.Print.

Is there a way to read these, or is the only way to enable file logging then parsing log files from disk?

I’m trying to do the same thing, and have found no solution for it other than just using my own logging functions that then call GD.Print, etc. this would be very nice to have, but I don’t think there is a way aside from changing the engine itself.

domportera | 2023-02-21 06:25