On Fri, May 26, 2017 at 8:04 PM, Guohuang Chen <[email protected]> wrote:
> can i add something to the pyramid logging ? such as session['login_name'] > remote-ip ... > You might also look at the pyramid-log <https://pypi.python.org/pypi/pyramid-log> package. I think it will do what you want. It provides a custom log formatter which adds the pyramid request to the log record, and also adds some magic syntax so that one can interpolate bits accessible from the request with a format string like: %(asctime)s %(request.session.login_name)s %(request.client_addr)s %(message)s -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/CAM4%2Bx0EyBSPoGy%2BHW7HwLmcSgBfVbKgbXUvz9bOXOwZva3n9FA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
