I would like to get a clear understanding of what would be the most pythonic and cleaner way to implement:
- a custom logger.
- a piece of code which connects via REST to a third-party entitlement system to be combined with the internal Pyramid ACLs and permission system.
Should I rather write a WSGI middleware which gets the app as parameter or a pure Pyramid Tween for either one or both my requirements?
Also, which of wsgi middleware or tween is the most compliant with apache + mod_wsgi?
Thanks