Breaking: #52705 - Default log configuration is changed
See forge#52705
Description
FileWriter behavior has changed
The FileWriter of the logging Framework now appends a hash to its default log file which is used when no log file name is provided in the configuration.
The new default log file might now look like this (the hash depends on the current encryption key):
typo3temp/logs/typo3_7ac500bce5.log
Default configuration has changed
For security reasons we want the default log file of TYPO3 to contain a random hash to make guessing the file name harder.
Therefore the log
configuration is removed for the default File
configuration.
Additionally the "deprecated" File
configuration is removed because it is not used by the core.
Impact
If the log file configuration is not overwritten the TYPO3 default log file will change from
typo3temp/
to typo3temp/
.
Installations with Extensions making use of the changed / removed log configurations might break.
Affected Installations
All instances that expect the default log file to be typo3temp/
for some reason.
All instances that expect the log
configuration to be present in the writer
for some reason.
All instances that use the "deprecated" log configuration in their Extensions.
All instances that use Extensions which extend the FileWriter and access the $default
class property
which is replaced by $default
and the get
method.
Migration
Adjust the log configuration according to your needs in your Local
.
Adjust any Extension code affected by the changes if needed.