Managing server log messages

The --log-level option allows us to set the log verbosity. This can be very useful to understand what is going on in the server. For example, to enable the debug log level, use the --log-level=debug option.

The following log levels can be particularly interesting:

  • debug_sql to inspect SQL queries generated by the server
  • debug_rpc to detail requests received by the server
  • debug_rpc_answer to detail responses sent by the server
In fact, --log-level is a simplified way to set the Odoo logging verbosity. You might like to know that the more complete --log-handler option allows you to selectively turn on/off specific loggers.

By default, the log output is directed to standard output (your console screen), but it ...

Get Odoo 11 Development Essentials - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.