-
Notifications
You must be signed in to change notification settings - Fork 31
Closed
Description
Greetings,
this is an excellent and handy tool. In the spirit of this pull request, I was wondering, if it would be feasible to make extending StatusLog
easier. I'm looking for a way to add some fields to the standard model and to populate them.
Example model:
class MyOwnLog(django_db_logger.StatusLog):
data1 = models.CharField([...])
data2 = models.ForeignKey([...], blank=True, null=True)
Example use:
db_logger.info("Someone did something", data1, data2)
Expected result in admin:
Message | Trace | Create Datetime | Data1 | Data2 |
---|---|---|---|---|
Someone did something | ... | data1 | data2 |
NiMeDia, bradsolves and alexxxxey
Metadata
Metadata
Assignees
Labels
No labels