Change logger format

Hello

In the Python SDK, I've seen that for the logger the only options to configure the format is to select either TEXT or JSON, the TEXT option setting this format: %(asctime)s %(levelname)s %(message)s

I was wondering if there is a way to modify this format to match the one that all my other loggers follow. Of course, I could modify the logger.py module file by myself, but then I would have to do it in all my environments.

If it is not possible to modify it without editing the package, I would suggest to include that option in a future release. I think it's a feature which wouldn't be hard to implement, and would be useful for projects with strict logging format conventions.

Thank you!

Hi Adrian,

Thanks for the suggestions. Currently we do not support the ability to customize the format of the SDK logger. The purpose of that is to maintain the consistency between SDKs in different languages. Right now all SDKs share the same settings and formats of the logger. What you suggested is interesting, we will discuss it within the development group.

Thanks

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.