--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 telegram only, you can run it with parameter:

--log-handler=odoo.addons.telegram: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