[TASK] Set default minimum logging severity to warning 39/39839/7
authorSteffen Müller <typo3@t3node.com>
Sun, 31 May 2015 13:10:18 +0000 (15:10 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 6 Jul 2015 17:34:17 +0000 (19:34 +0200)
The TYPO3 default context is production. Therefore the default
logging should be limited to warnings and more severe levels.

Releases: master
Resolves: #67216
Change-Id: Ia4b34e67f99d475630f3401d459a1415146eb661
Reviewed-on: http://review.typo3.org/39839
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Configuration/DefaultConfiguration.php
typo3/sysext/core/Documentation/Changelog/master/Important-67216-DefaultMinimumLoglevelSetToWarning.rst [new file with mode: 0644]

index a22135b..23d5c3c 100644 (file)
@@ -833,7 +833,7 @@ return array(
        ),
        'LOG' => array(
                'writerConfiguration' => array(
-                       \TYPO3\CMS\Core\Log\LogLevel::DEBUG => array(
+                       \TYPO3\CMS\Core\Log\LogLevel::WARNING => array(
                                \TYPO3\CMS\Core\Log\Writer\FileWriter::class => array(
                                        'logFile' => 'typo3temp/logs/typo3.log'
                                )
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Important-67216-DefaultMinimumLoglevelSetToWarning.rst b/typo3/sysext/core/Documentation/Changelog/master/Important-67216-DefaultMinimumLoglevelSetToWarning.rst
new file mode 100644 (file)
index 0000000..080f5ba
--- /dev/null
@@ -0,0 +1,20 @@
+===============================================================
+Important: #67216 - Default minimum log level is set to warning
+===============================================================
+
+Description
+===========
+
+The minimum logging severity for TYPO3 has been raised from DEBUG to WARNING in order to ship strong defaults for production.
+Log messages of the severities DEBUG, NOTICE and INFO will be suppressed in the default setup.
+
+The previous behavior from TYPO3 <= 7.3 can be achieved with the following configuration:
+
+.. code-block:: php
+        $GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'] => array(
+                \TYPO3\CMS\Core\Log\LogLevel::DEBUG => array(
+                        \TYPO3\CMS\Core\Log\Writer\FileWriter::class => array(
+                                'logFile' => 'typo3temp/logs/typo3.log'
+                        ),
+                ),
+        );