gpt4 book ai didi

winston - 禁用 winston 的详细启动日志

转载 作者:行者123 更新时间:2023-12-05 07:24:12 26 4
gpt4 key购买 nike

当我的应用程序启动时,winston 会记录各种信息,例如

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

我怎样才能禁用它?

最佳答案

在环境变量中设置以下属性:

DEBUG=-winston:create-logger

另见:https://github.com/3rd-Eden/diagnostics/issues/20

关于winston - 禁用 winston 的详细启动日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55573448/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com