TYPO3 Forger
  • Dashboard
  • Get involved
  • Reviews
    Overview Ready for review Work in progress Needs action Needs review Needs verification Needs rebase Negative votes Reviewed and verified Ready to merge
  • Issues
    Stale issues Possible duplicates By category By month
  • Sprints
    Overview Initiatives TYPO3 Core Review board
  • Tools
    Backports ReST helper
  • Help
  • Search
  • Login
Esc

Words find the open ones, a number the issue and the change with it.

  1. Issues
  2. #95044
Issue Feature Closed

#95044Support autowired LoggerInterface injection

Benjamin Franzke 08/31/21, 07:16 updated 09/07/21, 07:31

Open in Forge Comment in Forge

Description

Logger may be required to be available during object
construction, LoggerAwareInterface isn’t an option in that case.
Therefore LoggerInterface as constructor argument should be
autowired (if the services is configured to use autowiring)
and instantiated with an object-specific logger.

Reviews 4

  • 11.5 75304[TASK] Add tests for log `#[Channel(...)]` attribute Related to this issue Merged Stefan Bürk CR +2 V +2 → main Normal +230 −1 07/26/22, 21:36
  • main 74750[TASK] Add tests for log `#[Channel(...)]` attribute Related to this issue Merged crell CR +2 V +2 → 11.5 Normal +221 −1 07/26/22, 21:05
  • main 70849[FEATURE] Support PHP 8 style Channel attribute for logger injection Related to this issue Merged Benjamin Franzke CR +2 V +2 Normal +178 −2 09/03/21, 15:50
  • main 65449[FEATURE] Support autowired LoggerInterface injection Resolves this issue Merged Benjamin Franzke CR +2 V +2 Normal +125 −11 09/03/21, 08:51

Related issues 1

  • Feature #95079Support PHP 8 channel attribute for logger injection Related to Closed System/Bootstrap/Configuration Benjamin Franzke 09/02/21, 12:18
Assigned to
Benjamin Franzke
Author
Benjamin Franzke
Priority
Should have
Category
System/Bootstrap/Configuration
Target version
11.4
© 2026 TYPO3 GmbH.
  • API
  • Privacy Policy
  • Legal Notice
  • Feedback