Skip to main content

Track REST API calls into DB

Project description

Alpha License: LGPL-3 OCA/rest-framework Translate me on Weblate Try me on Runbot

When exposing REST services is often useful to see what’s happening especially in case of errors.

This module add DB logging for REST requests. It also inject in the response the URL of the log entry created.

NOTE: this feature was implemented initially inside shopfloor app. If shopfloor is installed, log records will be copied from its table.

Table of contents

Configuration

Logs retention

Logs are kept in database for every REST requests made by a client application. They can be used for debugging and monitoring of the activity.

The Logs menu is shown only with Developer tools (?debug=1) activated.

By default, REST logs are kept 30 days. You can change the duration of the retention by changing the System Parameter rest.log.retention.days.

If the value is set to 0, the logs are not stored at all.

Logged data is: request URL and method, parameters, headers, result or error.

Changelog

13.0.1.0.0

First official version.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Camptocamp

  • ACSONE

Contributors

Other credits

Financial support

  • Cosanum

  • Camptocamp R&D

  • ACSONE R&D

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

simahawk

This module is part of the OCA/rest-framework project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file odoo14_addon_rest_log-14.0.1.0.3.dev1-py3-none-any.whl.

File metadata

  • Download URL: odoo14_addon_rest_log-14.0.1.0.3.dev1-py3-none-any.whl
  • Upload date:
  • Size: 35.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.4.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5

File hashes

Hashes for odoo14_addon_rest_log-14.0.1.0.3.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1c5fe1f754b162d218da9e4be348b7e8abae7752b3c7babf135ac1aadcb41be
MD5 0f167654d1b0856080eb16818f16ead0
BLAKE2b-256 9043e45c0c3db2c108da213f04b5123544d8fd422281c54a7e99dd7f0db26015

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page