Skip to content

[Docs] Update logging section #8

@lonix1

Description

@lonix1

I found the "Turn off errors" config to be confusing. I'm not using express, so it doesn't apply in my case. Also I think it's for an older version of webpack.

With webpack 5, the old logging config is obsolete, we must use infrastructureLogging instead.

This works:

module.exports = {
  //...
  infrastructureLogging: {
    level: 'error',
  },
};

I'm using "error" rather than "none". But the output is the same in both cases anyway.

That docs section should be updated to show the config above, to avoid confusion. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions