i'm using polipo (proxy server) for local caching.
is there a way to log all access through polipo just like urlsnarf or other web server log file do?
logFile = "/tmp/access.log"
logLevel = ? # what should i fill to log all url?
and if possible, get cached file location also
output for 0xFF is something like this, it does not always show the requested url:
Couldn't parse last-modified: Sat, 23 Feb 2013 16:25:16 +0100
Uncacheable object http://nekovm.org/_media/neko-2.0.0.tar.gz (2120)
Superseding object: http://nekovm.org/_media/neko-2.0.0.tar.gz (200 425539 -1 (none) -> 200 425539 -1 (none))
Unsupported Cache-Control directive post-check -- ignored.
Unsupported Cache-Control directive pre-check -- ignored.
Couldn't parse last-modified: Sat, 23 Feb 2013 16:25:16 +0100
Uncacheable object http://nekovm.org/_media/neko-2.0.0.tar.gz (2120)
Superseding object: http://nekovm.org/_media/neko-2.0.0.tar.gz (200 425539 -1 (none) -> 200 425539 -1 (none))
Vary header present (Accept-Encoding).
Vary header present (Accept-Encoding).
Vary header present (Accept-Encoding).
Superseding object: http://opalrb.org/opal-parser.js (206 709851 1363984598 (none) -> 206 709851 1363984598 (none))
Vary header present (Accept-Encoding).
Superseding object: http://opalrb.org/opal-parser.js (200 709851 1363984598 (none) -> 200 709851 1363984598 (none))
Vary header present (Accept-Encoding).
Superseding object: http://opalrb.org/opal-parser.js (200 709851 1363984598 (none) -> 200 709851 1363984598 (none))
Vary header present (Accept-Encoding).
Superseding object: http://opalrb.org/opal-parser.js (200 709851 1363984598 (none) -> 200 709851 1363984598 (none))
Vary header present (Accept-Encoding).
Superseding object: http://opalrb.org/opal-parser.js (200 709851 1363984598 (none) -> 200 709851 1363984598 (none))
Vary header present (Accept-Encoding).
Vary header present (Accept-Encoding).
Vary header present (Accept-Encoding).
Uncacheable object http://www.youtube.com/?hl=en&gl=US (2050)
Best Answer
To enable logging, the manual states that:
Following on from that, log.h (from here) has the following levels:
So, for example, if you wanted to see all of the log messages in a file, the recommended configuation is (in
/etc/polipo/config
):