Story #48874
As a developer I want a PSR-3 compatible Logging API
Status: | Resolved | Start date: | 2013-06-05 | |
---|---|---|---|---|
Priority: | Could have | Due date: | ||
Assigned To: | - | % Done: | 100% |
|
Category: | Logging API | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | 6.2 | |||
Story points | - | |||
Velocity based estimate | - |
Description
PSR-3 aims to set a standard for Logging in PHP.
Adapting this standard for the Logging API on TYPO3 would allow developers to replace the core Logging implementation with any other PSR-3 compatible logger (given the necessary dependency injection is in place).
It also would ease the understanding how to log in TYPO3.
Subtasks
Related issues
History
#1 Updated by Ernesto Baschny about 2 years ago
In my understanding the major benefit of implementing a PSR-3 compatible interface in TYPO3 is not to "allow developers to replace the core Logging implementation", but to allow third party modules/packages which log to PSR-3 to be integrated into TYPO3 without modification (simply injecting the PSR-3 Logging Interface from TYPO3 into it).
From the Standard:
"The main goal is to allow libraries to receive a Psr\Log\LoggerInterface object and write logs to it in a simple and universal way."
The easiest way would be to provide an adapter which implements this interface and under the hood uses the (more sophisticated) TYPO3 API. TYPO3 Core could still use TYPO3's own API (which provides more flexibility).
#2 Updated by Steffen Müller about 2 years ago
#3 Updated by Steffen Müller about 2 years ago
- Status changed from New to Accepted
#4 Updated by Steffen Müller about 2 years ago
- Status changed from Accepted to Resolved