2
0
mirror of https://github.com/thumbsup/thumbsup synced 2024-11-13 01:10:49 +00:00
Commit Graph

6 Commits

Author SHA1 Message Date
Romain
3ced05ad1f feat(core): option to specify the log file 2020-12-30 13:29:09 +01:00
Romain
4d8dfcb7b7 fix(cli): can explicitly set the log level to “default” for the Listr renderer
Fixes #154
2019-06-13 22:36:31 +02:00
Romain
9425604dd7 chore(dependencies): upgrade Standard from v11 to v12 which introduces a style change 2018-12-11 23:11:03 +01:00
Romain
e9beb830a2 feat(core): skip files that can’t be processed + show a summary at the end
Thumbsup used to stop at the first problem processing a file.
This was a problem on large galleries where you’d need to run it again and again, fixing files as you went.
This change:
- skips problematic files and shows a summary at the end
- logs all warnings/errors to <thumbsup.log> when running the default output

Also refactor and cleanup of the logging logic.
2018-06-09 00:20:29 +02:00
Romain
21b0e121d5 fix(log): use debug.enable() instead of setting process.env.DEBUG to set the log level dynamically
The `debug` package reads DEBUG on first require to configure itself.
So far `log.js` is the first file to require it so it works, but if `yargs` started using `debug`
then setting `process.env.DEBUG` would do nothing here.

Instead we can use `debug.enable()` method to set the filter dynamically.
2017-12-10 23:59:36 +11:00
Romain
47a924883e New --log option to print a full text log with different verbosity levels 2017-12-08 00:06:35 +11:00