Sato Sato - 1 year ago 82
Node.js Question

How to disable stdout/stderr output when `node bin/www`?


npm start
ndoe bin/www
, it will put error to stderr and output
GET / **
to stdout, how to disable the logging?

Answer Source

If you are in a bash-shell, you can pipe all output to dev/null:

node bin/www > /dev/null 2>&1
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download