Closed gregoryturner closed 2 years ago
The plugin records all events to the DB
Just to clarify, the plugin records requests, not events.
Excellent idea. Will look into adding a custom filter, as requested.
I have added an optional requestFilter
setting to version 1.1.2, that can be defined under config/activity-logs.php
.
E.g:
<?php
return [
'requestFilter' => function () {
return $this->getPathInfo() !== 'activity-logs';
}
];
Note that $this
is an instance of craft\web\Request
Thank you for the rapid response. I'll share this update with our dev. group and see if it'll meet their needs.
Is your feature request related to a problem? Please describe. No issues related to feature request
Describe the solution you'd like The plugin records all events to the DB. For our purposes, we only need a concise recording of select events. We would like you to add an event we could tap into via a module. This would enable us to control what gets written to the DB and what gets displayed without having to do a lot of filtering on the display itself.
An example event syntax: Event::trigger(self::class, self::EVENT_BEFORE_INDEX_ELEMENT, $event);
Describe alternatives you've considered We have considered writing our own plugin.