The script console allows running arbitrary Groovy scripts on the Jenkins instance. While it can only be used by admins, it may still be desired to track its usage. Motivations to track it may be:
- Disaster Analysis (after running a destructive script)
- Audit requirements (Legal / Regulatory)
An extendable listener that is triggered during the script execution would be light-weight and flexible towards user's requirements.