<div>I was trying to better understand Swift, and to that end I thought it would be interesting to log the requests coming in and out of the different servers. Alas, I'm new to Paste (and very rusty on the little python I knew) - hence I've having problems achieving this.</div>
<div><br></div><div>I found the following:</div><div><p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";
color:black">Logging configuration in python: <a href="http://www.red-dove.com/python_logging.html" target="_top"><span style="color:#4571D0;border:none windowtext 1.0pt;mso-border-alt:none windowtext 0in;
padding:0in">http://www.red-dove.com/python_logging.html</span></a></span></p>

<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";
color:black">Logging WSGI requests: <span style="color:#4571D0;border:none windowtext 1.0pt;
mso-border-alt:none windowtext 0in;padding:0in"><a href="http://wiki.pylonshq.com/display/pylonscookbook/Request+logging" target="_top">http://wiki.pylonshq.com/display/pylonscookbook/Request+logging</a></span></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";
color:black"><br></span></p><p class="MsoNormal"><font class="Apple-style-span" face="Arial, sans-serif"><span class="Apple-style-span" style="font-size: 10.5pt;">And based on these I've ended up in proxy-server.conf that looks something like below. But it doesn't seem to </span><span class="Apple-style-span" style="font-size: 14px;">achieve</span><span class="Apple-style-span" style="font-size: 10.5pt;"> the desired results. Pointers highly appreciated !</span></font></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";
color:black"><br></span></p><p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";
color:black"><br></span></p></div><div><br></div><div><br></div>[pipeline:main]<div>pipeline =  mylogging healthcheck cache swauth proxy-server</div><div><div><br></div><div>[app:proxy-server]</div><div>use = egg:swift#proxy</div>
<div>allow_account_management = true</div><div><br></div><div>[filter:mylogging]</div><div>use = egg:Paste#translogger</div><div>setup_console_handler = False</div><div>logger_name = wsgi</div></div><div><br></div><div><div>
[loggers]</div><div>keys = root</div><div><br></div><div>[handlers]</div><div>keys = console</div></div><div><br></div><div><div>[logger_root]</div><div>level = DEBUG</div><div>handlers = console</div></div><div><br></div>
<div><div># Handler for printing messages to the console</div><div>[handler_console]</div><div>class = FileHandler</div><div>args = ('/home/openstack/swift.log','a')</div><div>level = DEBUG</div><div>formatter = generic</div>
</div><div><br></div><div><div>[formatter_generic]</div><div>format = %(asctime)s %(name)s[%(levelname)s] %(message)s</div></div><div><br></div>