Rails 关于 Redmine 的 Log 问题,请大神指点一下。

Nekor · October 29, 2018 · Last by Nekor replied at October 29, 2018 · 1087 hits

我想控制 production.log 文件里写进去的 log。 因为在 production.log 中发现了很多开发模式才需要的 log,造成冗余太多,我想把那些无用的 log 给控制住,应该怎么做?

production.rb中应该有配置选项

config.log_level = :info
Reply to renyijiu

谢谢大佬,亲测可用。

Nekor closed this topic. 16 Jul 20:55
You need to Sign in before reply, if you don't have an account, please Sign up first.