six8 / logaware

Python Logger that is context aware
BSD 2-Clause "Simplified" License
2 stars 2 forks source link

standard library json formatting does not handle Mapping types well #7

Open jong opened 7 years ago

jong commented 7 years ago

When trying to dump a LogMeta object to a JSON string, it errors because LogMeta objects subclass Mapping, not dict, which the json module does understand how to format into a JSON string.

jong commented 7 years ago

Using Mapping instead of something like dict was intentional - log meta should be read-only.