-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimal verbose mode #1834
Minimal verbose mode #1834
Conversation
src/cli.js
Outdated
@@ -59,7 +59,7 @@ program | |||
.option( | |||
'--log-level <level>', | |||
'set the log level, either "0" (no output), "1" (errors), "2" (warnings + errors) or "3" (all).', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we update this message to add the new verbose modes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, updated it to include the verbose and debug mode
src/Logger.js
Outdated
`parcel-debug-${currDate.toLocaleDateString()}@${currDate.toLocaleTimeString()}.log` | ||
) | ||
); | ||
this.logFile.write = this.logFile.write.bind(this.logFile); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this bind needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think so, I'll remove it, seems to work fine without
Follow parcel-bundler/parcel#1834 I add `verbose` and `debug` options to log level
Follow parcel-bundler/parcel#1834 I add `verbose` and `debug` options to log level
Adds verbose and debug mode:
4: verbose, keep everything in log with timestamps, instead of using statusspinner
5: debug, save everything to a file with timestamps
Shouldn't slow down anything, verbose might even speed everything up as it uses native console.log instead of a spinner.
Also adds a log call after an asset has been processed to track which files are being successfully built
Closes #993