Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(logger): Count warnings (#1205)
If you want to make your build fail on error messages, you currently can do ``` const result = app.generateDocs(project, OUTPUT_DIR); if (!result || app.logger.hasErrors() ) { console.log("Errors were logged during the generation of the documentation. Check the log for more information"); process.exit(1); } ``` However, warning messages typically indicate a problem as well. If you want to make your build fail on those as well, you need a custom logger to keep track of the warning messages yourself. This PR makes this easier by counting the warning messages in a similar fashion as the error messages.
- Loading branch information