-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

for a larger Pyramid application I am planning a concept for collecting
data from the app servers - in particular as a first step I want to
measure and log the execution time of views. A common Python approach
is using a logging decorator for this purpose and logging start and end
timestamp inside the decorator. For standard Python code this would look
like

@logger
def mycode(...):
  ...


However this does not seem to work properly in combination with
the view_config decorator like

@logger
@view_config(..)
def myview(....):

or


@view_config(..)
@logger
def myview(....):

Is there a way to make such a logger decorator work with
the @@view_config decorator?

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJQ9UOmAAoJEADcfz7u4AZjydkLv2az7ySrt3zYwlJ78kMlbkni
fjdhm4rCR5X2upMl8hqqIXpV1pWhpr9ODMHz8vQ9ZF6+MTul3E6F0qGxpiWAeL5I
RpFu5LMCdRKv54zNtqSuDcogerq0OISgqwOHyCTGsShmEGCDor3hm+o1s8Y1tACs
H9oe0JvtFnKL/gD+7wYcpEgTUhqx5/iAQzMUnf1IU/3IZEjGQrBhKrvdDADoxPMu
3ZPRMyOC5FdUB6etoLr+V552b2XXqpZvpiUMFXuLAWUWwvEud5dYG0RYSeuj16EE
Bki+IvnubVx/YkFEu5i0h1kfmuwZ49+N2YhGQ53utTNS9Qta9vxBkD+8F4LwliJT
yiN8Or31/tS96Fpi1+7GxVA5X+8fEpIREhTfoJrQocpmFjKD3bRcPAd1mgk6RcRI
0IrS1hyXhzqUBBACDoZhhVIWrR7/QljixgkHxtacYcvqR/pE3GDOrITAeSTK5323
6/sFzHDA1X5bSHSqCICkVgaqWaw00qA=
=62Nn
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

<<attachment: lists.vcf>>

Reply via email to