Apache – 如何logging文件名称和file upload的大小

我想保留一些有关上传到我的服务器的文件的静态,包括文件名称,大小和响应时间。

我使用PHP来处理服务器端的上传(客户端是一个POST表单),但理想情况下,我想使用Apache的日志logging工具来收集上述数据。 所以,我试图修改Access_log的默认格式,但我只发现如何添加响应时间(使用%D格式化程序)。

是否有可能使用Apache日志来监视至lessPOST请求的大小,如果可能的话,上传的文件的文件名?

根据你想要的Apache文档 %Imod_logio

 %I Bytes received, including request and headers, cannot be zero. You need to enable mod_logio to use this. %O Bytes sent, including headers, cannot be zero. You need to enable mod_logio to use this.