Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 220 |
Technical Name |
pc_api_sync_log |
License | AGPL-3 |
Website | https://www.portcities.net |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
Discuss (mail)
|
Lines of code | 220 |
Technical Name |
pc_api_sync_log |
License | AGPL-3 |
Website | https://www.portcities.net |
API Synchronization Log
API Synchronization Log is a module that logs all REST API endpoint calls and
automation processes of synchronization.
It helps track synchronization transactions and can be used for debugging purposes in the future.
This module provides greater transparency and accountability for all
API synchronization activities.
Features
Automated API Call Logging
API calls are automatically logged for future reference.
Configurable Log Archiving
Old synchronization logs can be automatically deleted or archived based on a defined configuration.
Why you should use API Synchronization Log
Enhanced debugging
Provides a detailed record of REST API and synchronization process calls, which can be used for debugging and troubleshooting
Compliance and auditing
Provides a comprehensive record of all synchronization activity, which can be used for compliance and auditing purposes.
Performance optimization
Allows for analysis and optimization of synchronization performance by identifying any issues or bottlenecks in the process.
How to use API Synchronization Log
- The configuration can be found at Settings → Technical → Automation → Synchronization Logs
- To be able logs any API endpoints transaction or synchronization transactions,
call the
create_sync_log
function and pass the needed parameters.Example:import requests import json # make the API call, hold the result in a variable response = requests.post(url='https://your_api.endpoint.com', data='your_payload_in_json') # call the sync log after every API call self.create_sync_log(response=response, payload=json.dumps(response.text), sync_log_name='your_sync_name')
-
To Automatically delete / archive correctly, configure it from Settings → General Settings → Companies → Auto Vaccuum Sync Log
Contact & Support
Having trouble with the module or need additional features?
Contact us at:
Email : modules@portcities.net
Website : https://www.portcities.net
Please log in to comment on this module