Skip to content

Use infrastructureLogging #4111

@gooverdian

Description

@gooverdian

Clear and concise description of the problem

Currently there are some places where plain console is used (well, it's everywhere createLogger is used).

It leads to some lost logging, if rspack/webpack uses infrastructureLogging and we are sending/reading those elsewhere.

I see some plugins using it, but not core.

Related with #3831 a bit, more proper way though imo.

Suggested solution

Use infrastructureLogging if it is exists, createLogger otherwise.

Alternative

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

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