Nginx to serve static content in cpanel server

Hello,

I have a cpanel server and wish to serve static content using nginx
configured as proxy
Now to be compatible with cpanel traffic accounting i need nginx to
write to
the cpanel byteslog in the following format(apache)

===================
CustomLog /usr/local/apache/domlogs/domain.com-bytes_log “%{%s}t %I
.\n%{%s}t %O .”

On googling i found a person in WebHosting talk has accomplished this
using
a patch to the log_module.

Can this be accomplished in version 0.7.24 without patching.If yes how?

Also i not where will get the patch file for the log_module

Thanks for all the help