I want to add some logging to my plugin, and for various reason want to create my own wrapper function around error_log(). And for reusability, I'd like to stick my wrapper function in a separate utility plugin.
Assuming that I have the utility plugin, and the my_error_log() function is there, how can I call it from anywhere in my other plugins? How can I be sure I can call it? Are plugins functions available across my WordPress code? Should I somehow ensure that my utility plugin is loaded first?
As I understand them, I don't think I can use a hook or action, as I want to call the error logging function from inside the code of my other plugins, for debugging purposes, as that code executes.
PS: Yes, I do realize this is rather a n00b question :-)