-1

I want to log data, not just string in a python.

I would like to avoid implementing this myself, since I think this was done before.

I want to support these primitive data types:

  • strings
  • integers
  • datetime
  • lists
  • dictionaries

Putting above into a log is easy.

I need the next part too: Parse the logs to data again.

I don't care if the data format is json, xml, yaml, protcol buffers or something else.

The library should be open source.

0

There is structlog

The web page says this:

structlog makes logging in Python less painful and more powerful by adding structure to your log entries.

But I have not used it up to now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.