These are chat archives for cherrypy/cherrypy

Oct 2018
Oct 17 2018 18:04

Finally found the solution

Something like this would do it.

cherrypy._cplogging.LogManager.access_log_format = (
       '{t} MYLOG {h} "{r}" {s} {b} "{f}" "{a}"'
       if six.PY3 else
       '%(t)s MYLOG %(h)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
Well sorta.
I think I'm going to end up forking and adding what I need to _cplogging.LogManager
Sviatoslav Sydorenko
Oct 17 2018 22:40
well, that'd do a static format change, but won't render new data in there.
Maybe logging needs improvements, so feel free to send a PR :)
Sviatoslav Sydorenko
Oct 17 2018 23:40
@the7erm have you checked remote argument of proxy tool?
what's your config?