Skip to content

Feature Request: Plugin-able Logger Interface #2641

Closed
@astorm

Description

@astorm

Based on some examination of the Magento 2 codebase, it looks like Magento 2 uses the virtual type

Psr\Log\LoggerInterface

Whenever it needs to grab a logger. This is good. However, it sounds like you can't use plugins on non-Magento classes.

If possible, it would be nice if the there was a universally used logger interface that was plugin-able. This would enable a lot of useful third party customizations/tooling. While Monologger is a great package, it's handler based approach is limited/complicated/creates-hard-to-resolve-issues for extension developers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions