ipfs-shipyard / ipfs-deploy

Zero-Config CLI to Deploy Static Websites to IPFS
Other
1.16k stars 123 forks source link

fix: output logs to stderr #216

Closed hacdias closed 3 years ago

hacdias commented 3 years ago

Fixes #215.

There was a regression compared to v8, where we now output to stderr by mistake. This PR introduce introduces a function .out to the logger object, so we now have:

The defaults for .info and .error are stderr, while .out is stdout. This allows for developers importing the package to completely turn off logging or customize it as their need too.

If the option -q, --quiet is passed, then .info does nothing.

License: MIT Signed-off-by: Henrique Dias hacdias@gmail.com