[!!!][FEATURE] Introduce PSR-3 Logging 56/61156/16
authorMarkus Klein <markus.klein@typo3.org>
Wed, 5 Jun 2019 23:21:19 +0000 (01:21 +0200)
committerFrank Naegler <frank.naegler@typo3.org>
Fri, 19 Jul 2019 14:46:54 +0000 (16:46 +0200)
commitd1f4dbdb5a64479ccc3b0858fc1a3c321231beff
tree9e3fcf1c57349a5808f33e2ff3cf180519646cc0
parent3046caeb460fc555e014e7f46cdf04be85b5a9dc
[!!!][FEATURE] Introduce PSR-3 Logging

TYPO3's Logging Framework (especially LogLevel and LogManager)
are not PSR-3 compatible, as it uses integers as constants
and not strings, as defined in PSR-3's interfaces.

This makes TYPO3 incompatible to use custom loggers,
or to interop with other logging systems.

The patch changes the logging API to depend on PSR-3
interfaces but strives for maximum compatibility.

Resolves: #88799
Releases: master
Change-Id: Ib41840cc87035c2323087877bac07e62c439482e
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61156
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: TYPO3com <noreply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
17 files changed:
typo3/sysext/adminpanel/Classes/Modules/Debug/Log.php
typo3/sysext/adminpanel/Classes/Modules/DebugModule.php
typo3/sysext/core/Classes/Error/ErrorHandler.php
typo3/sysext/core/Classes/Log/LogLevel.php
typo3/sysext/core/Classes/Log/LogManager.php
typo3/sysext/core/Classes/Log/LogRecord.php
typo3/sysext/core/Classes/Log/Logger.php
typo3/sysext/core/Classes/Log/Writer/DatabaseWriter.php
typo3/sysext/core/Classes/Log/Writer/FileWriter.php
typo3/sysext/core/Classes/Log/Writer/PhpErrorLogWriter.php
typo3/sysext/core/Classes/Log/Writer/SyslogWriter.php
typo3/sysext/core/Documentation/Changelog/master/Breaking-88799-IntroducedPSR-3CompatibleLoggingAPI.rst [new file with mode: 0644]
typo3/sysext/core/Documentation/Changelog/master/Feature-88799-IntroducedPSR-3CompatibleLoggingAPI.rst [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/Log/Writer/DatabaseWriterTest.php
typo3/sysext/core/Tests/Unit/Log/LogLevelTest.php
typo3/sysext/core/Tests/Unit/Log/LogRecordTest.php
typo3/sysext/core/Tests/Unit/Log/Writer/DatabaseWriterTest.php