That's a cool one, thanks for sharing.
Le 01/06/2017 à 18:52, Jeff Dairiki a écrit : > > > On Fri, May 26, 2017 at 8:04 PM, Guohuang Chen > <[email protected] <mailto:[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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/CAM4%2Bx0EyBSPoGy%2BHW7HwLmcSgBfVbKgbXUvz9bOXOwZva3n9FA%40mail.gmail.com > <https://groups.google.com/d/msgid/pylons-discuss/CAM4%2Bx0EyBSPoGy%2BHW7HwLmcSgBfVbKgbXUvz9bOXOwZva3n9FA%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- 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/0c8eac6c-15a2-4a2a-d273-f50e9707fafe%40gmail.com. For more options, visit https://groups.google.com/d/optout.
