Skip to content

[RFC] Extract the built-in Logger to a separate component #59527

Closed as not planned
@phansys

Description

@phansys

Description

This RFC proposes to move the built-in PSR-3 Logger to its own component.

The reasoning behind this proposal is maybe wider

  • From the decoupled perspective, Symfony is a set of reusable PHP components.
  • From the framework perspective, Symfony is a PHP framework for web projects.

Given these assertions, the provided logger may be used even in pure CLI applications, where the HTTP context does not even exist. That's why I found weird that the logger is provided by a component that uses the HTTP term in its name.

Example

namespace Symfony\Component\Logger;

class Logger extends AbstractLogger implements DebugLoggerInterface
{
    // ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions