hojaonline/retrostats

This extension copies the exact functionality for writing the Apache-style log files as used to be part of the core until v4.7. The only issue to take care of is to add the [FE][logfile_dir] setting in AdditionalConfiguration.php instead of LocalConfiguration because the Install tool will remove it

Installs: 13

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 2

Type:typo3-cms-extension

dev-master 2018-05-11 22:03 UTC

This package is not auto-updated.

Last update: 2024-07-14 06:12:21 UTC


README

This extension copies the exact functionality for writing the Apache-style log files as used to be part of the core until v4.7. The only issue to take care of is to add the [FE][logfile_dir] setting in AdditionalConfiguration.php instead of LocalConfiguration because the Install tool will remove it otherwise.

All TypoScript settings should work as they used to do.

Development versions can be found in this github repository. Released versions of the extension are here: http://typo3.org/extensions/repository/view/retrostats

Configuration

The ['TYPO3_CONF_VARS']['FE']['logfile_dir'] setting should be placed in AdditionalConfiguration.php instead of LocalConfiguration.php, because the Install tool will remove it as it's no longer a known TYPO3 setting.

If you don't already have it, create the file AdditionalConfiguration.php inside directory typo3conf with the following contents:

<?php
// Value of logfile_dir is relative to site root and should end with / (slash)
$GLOBALS['TYPO3_CONF_VARS']['FE']['logfile_dir'] = 'fileadmin/logfiles/';

// .... other contents of this file

TypoScript configuration

Example TypoScript (setup)

Setting the following options will be sufficient in most cases. The first 3 settings (stat, stat_apache and stat_apache_logfile) are essential, the rest is optional.

config {
	// Necessary configuration options:
	stat = 1
	stat_apache = 1
	stat_apache_logfile = www.mysite.com.log
	
	// Optional:
	// This one is adviced in combination with realurl:
	stat_apache_pagenames = [request_uri]
	
	stat_excludeBEuserHits = 1
	stat_excludeIPList = xxx.xx.xx.xxx,yy.yy.yyy.yyy
}