Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我启动 errbit 时,我将其输出路由到日志文件。这个文件每天都变得很大。
我知道我可以旋转它,或者将它的输出路由到位桶,但我认为只是降低错误级别可能会更好......
有没有办法做到这一点?
您可以使用环境变量ERRBIT_LOG_LEVEL将日志级别更改为对您更有用的东西。尝试:
ERRBIT_LOG_LEVEL
ERRBIT_LOG_LEVEL=error