Launch offer
Business website $150 USD Custom plugin $200 USD Ready in 5 days
Get a quote
Odoo

Odoo Logging

Use Python logging.getLogger(__name__) in modules.

Odoo Logging — a practical guide to Odoo logging with clear examples you can reuse in real projects.

Odoo Tutorial Series (104/112). Prefer one article? Read the complete Odoo tutorial.

Short description

Avoid logging secrets; structured messages help production support.

Logging

import logging
_logger = logging.getLogger(__name__)
_logger.info('Synced %s partners', len(partners))

Leave a reply

Your email address will not be published. Required fields are marked *