CherryPy からの http リクエストのロギングを黙らせようとしています。私はもう試した
cherrypy.log.access_file = None
私が理解しているように、アクセスログのハンドラーを削除する必要がありますが、機能させることができないようです。
これは私が通常行う方法です:
access_log = cherrypy.log.access_log
for handler in tuple(access_log.handlers):
access_log.removeHandler(handler)
最新バージョンのCherryPyのドキュメントページ""
に、ハンドラーを設定しないように記載されていますNone
# Remove the default FileHandlers if present.
log.error_file = ""
log.access_file = ""