plugin/util.py: Add JSONPromise to log JSON data
After subclassing JSONPromise, promises can log python objects in JSON
format with:
```
self.json_logger.info(message, extra={'data': object})
```
and retrieve previously logged objects over a time interval with:
```
object_list = self.getJsonLogDataInterval(interval)
```
Co-authored-by: Xavier Thompson <xavier.thompson@nexedi.com>
Showing
Please register or sign in to comment