Feature #49039
RFC: Use PSR-3 logger interface in Flow
Status: | New | Start date: | 2013-06-11 | |
---|---|---|---|---|
Priority: | Could have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | Log | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: | No |
Description
Advantages:
- Interoperability of Flow loggers with 3rd party libraries
- Usage of 3rd party loggers in Flow (e.g.
monolog
)
Problems:
- Signature of
Psr\Log\LoggerInterface->log
is not compatible withTYPO3\Flow\Log\LoggerInterface
Ideas:
- 1: Create an Adapter class that decorates a Flow
LoggerInterface
and implements a PsrLoggerInterface
to the outside- This will ease the usage of 3rd party libraries that depend on
Psr\Log
in Flow, could be implemented in a separate package
- This will ease the usage of 3rd party libraries that depend on
- 2: Create an Adapter class that decorates a Psr
LoggerInterface
and implements a FlowLoggerInterface
, deprecate the current Flow logger- This is the path for a full transition to PSR-3 in Flow, could finally make something like a
TYPO3.Flow.Log
package an optional dependency of Flow
- This is the path for a full transition to PSR-3 in Flow, could finally make something like a
Related issues
History
#1 Updated by Adrian Föder about 2 years ago
- Category set to Log