Forum Moderators: phranque
I don't want Apache to write access logs, so I made a change like this:
#CustomLog logs/access_log combined
CustomLog /dev/null combined ..and also commented out CustomLog directives in Virtual Hosts.
I think that will prevent Apache to write the log files, but the problem is it will still use cpu resources, am I wrong there?
If that's the case, will something like this work?
LogFormat "" combined
#LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent What I'm using here is an empty log format:
LogFormat "" combined but on a really old forum (of about 10 years ago) :) a guy said it won't work?
What do you think?