Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
4523 Lượt xem

Hi

how can setup config file to log all event except info in log file?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

See this: https://www.youtube.com/watch?v=qmmEftBWAAg

Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

you can user log-level command line parameter 

./odoo-bin ..... --log-level=error (of course, you can define it on odoo config file)

if you want to target specific service of odoo then you can use --log-handler
ref: https://www.odoo.com/documentation/13.0/reference/cmdline.html
I recommend to use --log-level=warn so it will log warning, error and critical 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

Thanks for video but i want to log error and warning in this video log all event

Ảnh đại diện
Huỷ bỏ