Is it possible to set up my own class that extends ActivityLogger and use it?
I want to add a few things (for example logging IP address in separate database column), but don't want to change the code of the package, so I can still update it.
Currently there's no way of customizing the ActivityLogger itself.
You have two options to add the IP address to a logged item.
You can leverage custom properties.
You could create an observer on the Activity model and let it add the IP address to the row whenever an Activity model is created.
Most helpful comment
Currently there's no way of customizing the
ActivityLoggeritself.You have two options to add the IP address to a logged item.
You can leverage custom properties.
You could create an observer on the
Activitymodel and let it add the IP address to the row whenever anActivitymodel is created.