لا يبدو حاليًا أنه من الممكن عرض سجلات مستوى المعلومات في واجهة /logs.
يمكن أن تكون البيانات في ملف production.log، ولكن لا يمكن عرضها في الواجهة على الرغم من مربعات الاختيار!
وفر خيارًا للسماح بذلك.
في عصر نماذج اللغات الكبيرة (LLMs)، تعد سجلات مستوى المعلومات أكثر أهمية وفائدة!
انظر:
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 إعجابات
37Rb
(Ryan)
18 يونيو 2024، 5:36م
2
تم الإشارة إلى أن هذا حسب التصميم.
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…
ومع ذلك، يبدو أن رسائل مستوى المعلومات مستبعدة فقط من Logster Redis حسب التصميم ويتم تضمينها عمدًا في ملف السجل نفسه .
يمكن أن تكون رسائل مستوى المعلومات مفيدة في بيئة الإنتاج. لحالة الاستخدام الخاصة بنا، ستكون مفيدة للغاية. هل القصد هو أن المسؤولين الذين يريدون رسائل مستوى المعلومات يجب أن يحصلوا عليها مباشرة من ملف السجل؟