Skip to content

Extending StatusLog #7

@Bloodmallet

Description

@Bloodmallet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions