Bug 29917

Summary: Logging Plug-In Usage
Product: Koha Reporter: Rebecca Coert <rcoert>
Component: Plugin architectureAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: fridolin.somers, rcoert
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Rebecca Coert 2022-01-20 16:14:42 UTC
Plug-in Usage is not tracked at all & it would be very helpful to have the date a plug-in was last run/generated/used added to the Home › Tools › Plugins screen.
It has a "Last Updated" column which is helpful, but this information would also be useful.

Alternatively, it would be great to have this added to the system logs like the cronjobs are.
Comment 1 Fridolin Somers 2022-01-21 20:50:16 UTC
Good idea.

I think this should be limited to hooks tools and report.
Other hooks like intranet_js would generate too much entries.

Or let the plugin decide what to log ?
Comment 2 Katrin Fischer 2022-01-21 23:28:16 UTC
I was worried about the same thing as you Frido, creating too many entries. 

We could tie it to a system preference maybe, but I also like the idea of the having the plugin decide what to log.