Mirroring @bland328 I had the same problem, my sub-conf file had "LogLevel debug" and this over-rode the global "LogLevel dumpio:trace7" that seems to be required for Apache 2.4.7. Note that much of the online help is in reference to earlier Apaches and 2.4 has some different syntax.
For reference using an out-of-the-box install on Ubuntu 13.04 I've got a vhosts conf and this is where I had to add the 3 DumpIO lines:
#conf-available/other-vhosts-access-log.conf
# Define an access log for VirtualHosts that don't define their own logfile
CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined
LogLevel dumpio:trace7
DumpIOInput On
DumpIOOutput On
After this a sudo service apache2 restart
and a curl
with --data
caused a lot of debug lines to appear in \var\log\apache2\error.log
including the POST body, looking like:
[Thu Jul 03 14:39:58.878429 2014] [dumpio:trace7] [pid 12890] mod_dumpio.c(103): [client 10.84.17.174:51824] mod_dumpio: dumpio_in (data-HEAP): {"bob":42}