• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7111: Log user agent for all users; log additional info via extralog URL parameter

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine TWiki logs Enhancement Closed   patch 5.1.4

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

Two small "no-brainer" enhancements:

  1. Always show user agent for view script action, regardless if guest user or not
  2. Ability to log extra info via URL parameter

Sample TWiki log entry:

| 2012-12-28 - 16:46 | guest | view | Plugins.HeadlinesPlugin | Mozilla | 66.249.74.176 |

Currently, the user agent (Mozilla in this example) is only shown in the log for guest user, not for authenticated users.

Change: Always show user agent if available, regardless if guest user or authenticated user.

Additional enhancement: If URL parameter extralog is present for view script, its value is added to the log next to the user agent.

For example, http://twiki.example.com/do/view/Plugins/HeadlinesPlugin?extralog=hello+world would show this log entry:

| 2012-12-28 - 16:46 | guest | view | Plugins.HeadlinesPlugin | Mozilla hello world | 66.249.74.176 |

This is useful to log extra information, for example to have additional analytics available when custom search crawlers or cache scripts are used.

-- TWiki:Main/PeterThoeny - 2012-12-28

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.

-- TWiki:Main.PeterThoeny - 2012-12-29

Small additional change: User agent is only shown for view script.

-- TWiki:Main.PeterThoeny - 2012-12-29

ItemTemplate
Summary Log user agent for all users; log additional info via extralog URL parameter
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4, 5.1.3
SVN Range TWiki-5.1.3-trunk, Thu, 27 Dec 2012, build 24584
AppliesTo Engine
Component TWiki logs
Priority Enhancement
CurrentState Closed
WaitingFor

Checkins TWikirev:24605 TWikirev:24606 TWikirev:24607 TWikirev:24608 TWikirev:24609 TWikirev:24610 TWikirev:24611 TWikirev:24612 TWikirev:24625 TWikirev:24626
TargetRelease patch
ReleasedIn 5.1.4
Edit | Attach | Watch | Print version | History: r15 < r14 < r13 < r12 < r11 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r15 - 2013-02-18 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback