擅长:python、mysql、java
<blockquote>
<p>I've already tried <a href="http://www.cherrypy.org/wiki/Logging" rel="nofollow noreferrer">http://www.cherrypy.org/wiki/Logging</a>, which seems
out of date, or has information missing.</p>
</blockquote>
<p>尝试添加:</p>
<pre><code>import logging
import logging.handlers
import cherrypy # you might have imported this already
</code></pre>
<p>而不是</p>
^{pr2}$
<p>也许可以试试</p>
<pre><code>log = cherrypy.log
</code></pre>