O'Reilly logo

The Definitive Guide to Jython: Python for the Java™ Platform by Frank Wierzbicki, Leo Soto, Victor Ng, Jim Baker, Josh Juneau

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. Jython Cookbook

There are a plethora of examples for using Jython that can be found on the web. This appendix is a compilation of some of the most useful examples that we have found. Those that were chosen are focused on topics that are not widely covered elsewhere on the web.

Unless otherwise noted, each of these examples have been originally authored for working on versions of Jython prior to 2.5.x, but we have tested each of them using Jython 2.5.1 and they function as advertised.

Logging

Using log4j with Jython, Josh Juneau

wiki.python.org/jython/JythonMonthly/Articles/August2006/1

Are you still using the Jython print command to show your errors? How about in a production environment, are you using any formal logging? If not, you should ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required