'Is there a way to direct logging to file instead to stdout?

How could I redirect any logging to files to stdout/err/.. ? (to be specific I have rsyslog going)

Basically, I would like what WC_Log_Handler_File produces to be redirected, or even piped to stdout/etc. Is there such a way? (preferably through a filter that I have yet to come across)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source