[TYPO3-core] RFC: dynamic log file name (bug #2717)

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Mon Dec 4 16:50:48 CET 2006

Martin Kutschker schrieb:
> Martin Kutschker schrieb:
>> Hi!
>> This is a SVN patch request.
>> Problem: For stats log rotation you need an external tool.
>> Solution: use dynamic file names using strftime. Analyzers like 
>> AWstats (see 
>> http://awstats.sourceforge.net/docs/awstats_config.html#LogFile) 
>> usually deal well with such a setup).
>> Patch by Francois Suter (used successfully) and Michael Stucki.


Update for TSref (same as in bug bit with an added "(eg. typo3_20060321)"):

This the filename of the logfile in the directory 
$TYPO3_CONF_VARS["FE"]["logfile_dir"] (localconf) on the server where TYPO3 
writes to the apache logfile. The directory defined by 
$TYPO3_CONF_VARS["FE"]["logfile_dir"] must exist and be writable. It can be 
relative (to PATH_site) or absolute, but in any case it must be within the 
regular allowed paths of TYPO3 (meaning for absolute paths that it must be 
within the "lockRootDir" set up in TYPO3_CONF_VARS).
It is possible to use date markers in the filename, as per the PHP function 
strftime(). This will enable a natural rotation of the logfiles. For 
example, typo3_%Y%m%d.log will create daily log files (eg. typo3_20060321).
Make sure that the web server's user has the rights to write in the logfile 


More information about the TYPO3-team-core mailing list