Vsyslog message to serial port

Hello,
In _wpa_printf() the log message send to "vsyslog".
I want send the log from vsyslog to serial port.
How can I change the code.