0

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?

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you. I got the example from Python documentation working.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.