UNPKG

@hicoder/angular-cli

Version:

Angular UI componenets and service generator. It works with the mean-rest-express package to generate the end to end web application. The input to this generator is the Mongoose schema defined for the express application. mean-rest-express exposes the Res

35 lines (30 loc) 597 B
let warningNumber = 0; let errorNumber = 0; function increaseError() { errorNumber += 1; } function increaseWarning() { warningNumber += 1; } class Logger { static debug(msg) { console.error(msg); } static error(msg) { console.error('!!!!!!Error:'); console.error(' ', msg); increaseError(); } static warning(msg) { console.error('------Warning:'); console.error(' ', msg); increaseWarning(); } static warn(msg) { Logger.warning(msg); } static statistics() { return [warningNumber, errorNumber]; } } module.exports = Logger;