Atualmente, não parece possível visualizar logs de nível Info na interface /logs.
Os dados podem estar no arquivo production.log, mas não é possível visualizá-los na interface, apesar das caixas de seleção!
Forneça uma opção para permitir isso.
Na era dos LLMs, logs de nível info são ainda mais importantes e úteis!
Veja:
More things I’ve tried:
I’ve checked production.log and the info logs I want are there!
I’ve looked at the output of Logster.config on rails console and it’s not obviously useful.
ditto /vendor/bundle/ruby/3.2.0/gems/logster-2.19.1/lib/logster/configuration.rb
So I’m still at a loss why the info level logs are not showing in /logs
Clearly something is filtering out the info level logs between production.log and Logster.
https://github.com/search?q=repo%3Adiscourse%2Fdiscourse%20Logger%3A%3A…
3 curtidas
37Rb
(Ryan)
Junho 18, 2024, 5:36pm
2
Foi apontado que isso é intencional.
If I understand things correctly it’s suppressing info and debug in production mode by design. Blaming logster/lib/logster/rails/railtie.rb at main · discourse/logster · GitHub
store.level = Logger::Severity::WARN if Rails.env.production?
From a blog post
In production mode it aggregates similar errors by fingerprinting backtraces listening for warnings/errors and fatal messages. The intention is to display a list of open application problems that can somehow be resolved.
In development mo…
No entanto, parece que as mensagens de nível info são apenas excluídas do Logster Redis por design e são intencionalmente incluídas no próprio arquivo de log .
Mensagens de nível info podem ser úteis em produção. Para o nosso caso de uso, elas seriam muito úteis. A intenção é que os administradores que desejam mensagens de nível info as recebam diretamente do arquivo de log?