[TYPO3-core] RFC correction: Feature #1585: Logfile by Request URI + configuration of Empty Referer handling + logline hook

Ralf Hettinger ng at ralfhettinger.de
Sat Nov 10 14:27:34 CET 2007


This is an SVN patch request.

Type:
New feature (correction, see comments)

Bugtracker references:
http://bugs.typo3.org/view.php?id=1585

Branches:
trunk

Problem:
Bundling three problems in one request, since they all subsume under the topic
config.stat_apache=1 logging.
(1) There is no option for config.stat_apache_pagenames to trigger logging of
the request URI itself. But this is likely to be most interesting to log if some
rewrite extension like realurl / simulateStaticDocuments / (...) is in place.
(2) TYPO3's logging is not able to track direct address hits as Apache itself
could (and would by default).
(3) The logLine generated by class.tslib_fe.php is not extendable.

Solution:
(1) Introduce the option [requesturi] to config.stat_apache_pagenames
(2) Though this is not an exact solution (which I think is not possible due to
missing env var), it could be made configurable how to log hits with an empty
referer (since Apache's direct address hits will be seen as empty referer by
TYPO3). Introducing the property stat_apache_NoRefererIsDirectAddress=[boolean]
for this reason (see attached .txt)
(3) On behalf of Thomas Oppelt: Add a LogLine hook to tslib_fe->statistics():
TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['createLogLine'][]->createLogLine(&$LogLine,$this)

Comments:
Previous version used ambiguous wording for a suggested TS property
(stat_apache_NoRefererIsDirectAccess), which is changed hereby to
stat_apache_NoRefererIsDirectAddress to better reflect its function.


Ralf Hettinger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1585_trunk.patch
Type: text/x-patch
Size: 2234 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071110/d16d7a09/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1585_tsref_wiki.txt
Type: text/tab-separated-values
Size: 1140 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071110/d16d7a09/attachment.tsv 


More information about the TYPO3-team-core mailing list