--log-handler

--log-handler=PREFIX:LEVEL

Setups a handler at LEVEL for a given PREFIX. This option can be repeated.

For example, if you want to have DEBUG level for module sync only, you can run it with parameter:

--log-handler=odoo.addons.sync:DEBUG

To disable werkzeug logs add following parameter:

--log-handler=werkzeug:CRITICAL

To see all odoo log messages:

--log-handler=odoo:DEBUG

To see all log messages (including ones from libs):

--log-handler=:DEBUG

Log levels

  • CRITICAL
  • ERROR
  • WARNING
  • INFO
  • DEBUG
  • NOTSET

Usefull logs

Show api requests:

--log-handler=odoo.api:DEBUG

Using in config file

To make settings via config file use keyword log_handler and set the values as comma-seprated list, e.g.

log_handler=werkzeug:CRITICAL,odoo.api:DEBUG