Two small "no-brainer" enhancements:
- Always show user agent for view script action, regardless if guest user or not
- Ability to log extra info via URL parameter
Sample TWiki log entry:
| 2012-12-28 - 16:46 | guest | view | Plugins.HeadlinesPlugin | Mozilla | 18.104.22.168 |
Currently, the user agent (
in this example) is only shown in the log for guest user, not for authenticated users.
Always show user agent if available, regardless if guest user or authenticated user.
If URL parameter
is present for view script, its value is added to the log next to the user agent.
would show this log entry:
| 2012-12-28 - 16:46 | guest | view | Plugins.HeadlinesPlugin | Mozilla hello world | 22.214.171.124 |
This is useful to log extra information, for example to have additional analytics available when custom search crawlers or cache scripts are used.
This is now in SVN trunk and 5.1 branch.
I have done this for TWiki:Plugins.TWikiGuestCacheAddOn
so that topic caching action is logged in the TWiki logs.
Small additional change: User agent is only shown for view script.