Yikes. Bad idea. The logger daemon probably doesn't like what you're sending it. Reverse engineering what is supposed to be passed would be A solution, bu the easiest solution is probably to make your own
binds to the C lib that allows for logging. You need only one function. Good luck!