تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
8627 أدوات العرض

I am able to view every request and response message within API when I use debug_rpc_answer as log level.

However, openerp-server.log file also contains other irrelevant information that I don't need. For this reason, I want to use multiple log files and I want to log RPC messages into its own log file.

Any help would be appreciated.

الصورة الرمزية
إهمال
أفضل إجابة

I don't know of a way to leverage multiple log files.

As of v13, the following options in the Odoo configuration file turns off messages from almost everything else, allowing me to see JUST api calls:

log_level = debug
log_handler = werkzeug:CRITICAL,odoo.addons.bus.models.bus:CRITICAL,odoo.modules.loading:CRITICAL,odoo.http:CRITICAL,odoo.modules.registry:CRITICAL,odoo.service.server:CRITICAL,odoo.addons.base.models.ir_http:CRITICAL,odoo.addons.base.models.ir_cron:CRITICAL
The first line turns debug ON.

The next line turns it OFF (sets it to CRITICAL level) for the messages I don't want to see.


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
يناير 23
6252
1
مارس 22
4461
1
فبراير 22
4444
1
يناير 24
2364
0
سبتمبر 23
27