Skip to content

Add a debugging log #461

Open
Open
@oliverklee

Description

@oliverklee

For every error that currently is throwing an exception or that is worked around using the lenient mode, we should log the problem, the line number and the corresponding CSS fragment (where it makes sense).

We should log this using a PSR-compatible logger and provide a simple default logger to Parser. It should be possible to override the logger from the outside (so people can plug in their own logging if they like).

We'll also need to psr/log to our dependencies.

It should also be possible to disable debugging in order to improve performance.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions