Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable winston's verbose startup logs

Tags:

winston

When my app starts winston logs all kinds of stuff, e.g.

winston:create-logger Define prototype method for "error"
winston:create-logger Define prototype method for "warn"
winston:create-logger Define prototype method for "info"
winston:create-logger Define prototype method for "http"
winston:create-logger Define prototype method for "verbose"
winston:create-logger Define prototype method for "debug"
winston:create-logger Define prototype method for "silly"
winston:file written true false
winston:file stat done: combined.log
...lots more

How can I disable this?

like image 608
lonix Avatar asked Oct 12 '25 19:10

lonix


1 Answers

Set the following property in your environment variables:

DEBUG=-winston:create-logger

Also see: https://github.com/3rd-Eden/diagnostics/issues/20

like image 112
Gilbert Avatar answered Oct 16 '25 08:10

Gilbert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!