Logging from python plugin

  1. How do we log debug info from python plugin? Currently my plugin is crashing and I dont see my print statements in upstart log or even when I start tyk-python manually with --debug flag.

deleting the other question as I figured out the issue*

Hi, you could use standard print statements.

When writing Python middleware I suggest keeping all the functionality in a separate file, and make it testable on its own. Then provide a file with the hook declarations, etc. This pattern is used in the sample middlewares that we’ve published.

We would like to optimize the development experience of rich plugins in future releases, so any feedback is appreciated.

Best.