Feature #49039

RFC: Use PSR-3 logger interface in Flow

Added by Christopher Hlubek about 2 years ago. Updated about 2 years ago.

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 with TYPO3\Flow\Log\LoggerInterface

Ideas:

  • 1: Create an Adapter class that decorates a Flow LoggerInterface and implements a Psr LoggerInterface 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
  • 2: Create an Adapter class that decorates a Psr LoggerInterface and implements a Flow LoggerInterface, 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

Related issues

related to Logging Project - Story #48874: As a developer I want a PSR-3 compatible Logging API Resolved 2013-06-05

History

#1 Updated by Adrian Föder about 2 years ago

  • Category set to Log

Also available in: Atom PDF