Skip to content

chore(logger): remove logger package, inline webpack logger#1358

Merged
alexander-akait merged 9 commits into
webpack:nextfrom
anshumanv:logger
Mar 25, 2020
Merged

chore(logger): remove logger package, inline webpack logger#1358
alexander-akait merged 9 commits into
webpack:nextfrom
anshumanv:logger

Conversation

@anshumanv

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?
Remove logger package.

Did you add tests for your changes?
Yes

If relevant, did you update the documentation?
Yes

Summary

  • Remove logger package, inline webpack logger

Does this PR introduce a breaking change?
No

Other information
NA

snitin315
snitin315 previously approved these changes Mar 21, 2020

@snitin315 snitin315 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI under maintenance, LGTM

himanshu010
himanshu010 previously approved these changes Mar 21, 2020
shivaylamba
shivaylamba previously approved these changes Mar 21, 2020
jamesgeorge007
jamesgeorge007 previously approved these changes Mar 22, 2020
@webpack-bot

Copy link
Copy Markdown

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@alexander-akait alexander-akait left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/cc @webpack/cli-team need more reviews

@anshumanv

Copy link
Copy Markdown
Contributor Author

@evilebottnawi rebased which removed your review, PTAL again. ✨

snitin315
snitin315 previously approved these changes Mar 23, 2020
@alexander-akait

Copy link
Copy Markdown
Member

/cc @webpack/cli-team need more reviews

rishabh3112
rishabh3112 previously approved these changes Mar 24, 2020
@anshumanv

Copy link
Copy Markdown
Contributor Author

PTAL @evilebottnawi @rishabh3112, let's get this in. 🌟

@anshumanv

Copy link
Copy Markdown
Contributor Author

Uhoh, taking look at tests.

@webpack-bot

Copy link
Copy Markdown

@anshumanv Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@evilebottnawi Please review the new changes.

@alexander-akait alexander-akait merged commit 3e05b1e into webpack:next Mar 25, 2020
@anshumanv anshumanv deleted the logger branch March 25, 2020 12:50
@@ -1,3 +1,3 @@
const { logger } = require('@webpack-cli/logger');
const { getLogger } = require('webpack/lib/logging/runtime');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webpack/lib/logging/runtime should not be used here. Use compiler.getInfrastructureLogger("webpack-cli") instead.

@anshumanv anshumanv Apr 6, 2020

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will update 👍

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sokra we use logging before run webpack and after, and when we do other actions which don't need webpack (like init/info/migrate/generate), so we can't use infrastructure logger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.