nautobot / nautobot

Network Source of Truth & Network Automation Platform
https://docs.nautobot.com
Apache License 2.0
961 stars 259 forks source link

Add JSONField to nautobot.extras.models.models.JobLogEntry for debuging structured data #1594

Open whitej6 opened 2 years ago

whitej6 commented 2 years ago

As ...

Austin - Network Automation Engineer

I want ...

The ability to have a human readable log message AND the ability to log structured data.

So that ...

This will allow for easier troubleshooting and clear delineation on use of fields in the JobLogEntry object

I know this is done when...

Optional - Feature groups this request pertains to.

Database Changes

External Dependencies

No response

lampwins commented 5 months ago

@nautobot/core what do we think of this in the light of v2?

glennmatthews commented 5 months ago

Could be done certainly, though I'm not sure how the JobLogEntry table views would best need to be structured to potentially represent both string/Markdown and JSON data in each log entry. I'd also be a bit concerned about potential bloat of the JobLogEntry database table if we allow storage of arbitrarily large JSON in each log entry.