tags:

views:

33

answers:

1

I am using Python 2.5. The Python logging module allows adding contextual information to your logging output. Is something similar possible in Python 2.5?

+2  A: 

You can simply rip off the source code of LoggerAdapter from Python 2.6 and plug it in your own source code to get the exact same functionality. This is how others do it.

Tamás
Thank you. I got the example from Python documentation working.