Feature #49039

RFC: Use PSR-3 logger interface in Flow

Added by Christopher Hlubek over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Could have
Assignee:
-
Category:
Log
Target version:
-
Start date:
2013-06-11
Due date:
% Done:

0%

PHP Version:
Has patch:
No
Complexity:

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 over 6 years ago

  • Category set to Log

Also available in: Atom PDF