Ian suggested patching this function to be used by the Logger plugin, but also pointed out that it's undocumented and not currently used.
I think it would be better to move this function into the Logger plugin and rip it out of cordova.util to cut down on bloat. Worth an extra check to see if anyone knows of existing usage though?