Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide the yellow console.logs in nodemon

Is it possible to hide the yellow logs that displays when you start en watch with nodemon?

below is displayed in yellow in the console.

[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: /var/www/test/server/core/src/**/*
like image 785
Raymond the Developer Avatar asked Nov 30 '22 22:11

Raymond the Developer


1 Answers

From the documentation returned by nodemon -h:

-q, --quiet .............. minimise nodemon messages to start/stop only.

So run:

nodemon --quiet your-file.js
like image 104
Andy Ray Avatar answered Dec 02 '22 11:12

Andy Ray