This module allows an endpoint to activate full request logging in a database model.
It is useful to debug production issues or to monitor the usage of a specific endpoint.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Adds a 'Log requests' option on FastAPI endpoints so every incoming request, its response and any errors are stored in Odoo for debugging and monitoring.
This module connects the FastAPI endpoint configuration with the API log system. On each FastAPI endpoint form you get a new 'Log requests' checkbox (visible to users in the API log group) and a 'Logs' smart button that appears once logs exist, taking you straight to the related log entries.
When the option is enabled, every call to that endpoint is recorded automatically: the request body, the response status, headers and body, and any exception raised. Errors coming from FastAPI/Starlette are captured with their status code, headers and detail message. The endpoint itself is stored as the collection reference of the log, so you can tell which endpoint produced each entry.
A dedicated 'Fastapi Logs' menu is added under the FastAPI root menu, listing only logs linked to FastAPI endpoints. Logging happens in a separate database transaction, so a failed request does not prevent the log from being saved, and logging problems never break the actual API call.
The module extends api.log and fastapi.endpoint and reuses the existing API log views and access groups.
Required by other modules
Menus it adds
Models and fields (2)
- api.log · extends an existing model
- fastapi.endpoint · new model
Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/rest-framework.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0To activate logging for an endpoint, you have to check the Log Requests checkbox in the endpoint's configuration. This will log all requests and responses for that endpoint.
A smart button will be displayed in the endpoint's form view to access the endpoint logs. A global log view is also available in the FastAPI Logs menu.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.