Skip to content

Commit

Permalink
feat(log): add more logs on silent mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vogloblinsky committed Jun 20, 2017
1 parent 82af585 commit 1c858c7
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 14 deletions.
18 changes: 13 additions & 5 deletions dist/index-cli.js

Large diffs are not rendered by default.

18 changes: 13 additions & 5 deletions dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/app/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1122,9 +1122,9 @@ export class Application {

const onComplete = () => {
let finalTime = (new Date() - startTime) / 1000;
logger.info('Documentation generated in ' + this.configuration.mainData.output + ' in ' + finalTime + ' seconds using ' + this.configuration.mainData.theme + ' theme');
console.log('Documentation generated in ' + this.configuration.mainData.output + ' in ' + finalTime + ' seconds using ' + this.configuration.mainData.theme + ' theme');
if (this.configuration.mainData.serve) {
logger.info(`Serving documentation from ${this.configuration.mainData.output} at http://127.0.0.1:${this.configuration.mainData.port}`);
console.log(`Serving documentation from ${this.configuration.mainData.output} at http://127.0.0.1:${this.configuration.mainData.port}`);
this.runWebServer(this.configuration.mainData.output);
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/index-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class CliApplication extends Application
logger.error(`${program.output} folder doesn't exist`);
process.exit(1);
} else {
logger.info(`Serving documentation from ${program.output} at http://127.0.0.1:${program.port}`);
console.log(`Serving documentation from ${program.output} at http://127.0.0.1:${program.port}`);
super.runWebServer(program.output);
}
} else if (program.serve && !program.tsconfig && !program.output) {
Expand All @@ -169,7 +169,7 @@ export class CliApplication extends Application
logger.error('Provide output generated folder with -d flag');
process.exit(1);
} else {
logger.info(`Serving documentation from ${program.output} at http://127.0.0.1:${program.port}`);
console.log(`Serving documentation from ${program.output} at http://127.0.0.1:${program.port}`);
super.runWebServer(program.output);
}
} else {
Expand Down

0 comments on commit 1c858c7

Please sign in to comment.