Conditional logging is a feature in apache web server which help you exclude some requests getting logged.
Read How to remove cruft from your apache log
Optimise your WordPress site by hosting your assets in a separate sub domain.
Read Setup a separate sub-domain for media files in WordPress