odoo14-addon-rest-log


Nameodoo14-addon-rest-log JSON
Version 14.0.1.4.0 PyPI version JSON
download
home_pagehttps://github.com/OCA/rest-framework
SummaryTrack REST API calls into DB
upload_time2024-04-16 08:34:48
maintainerNone
docs_urlNone
authorCamptocamp, ACSONE, Odoo Community Association (OCA)
requires_python>=3.6
licenseLGPL-3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ========
REST Log
========

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:29a06e439771f569111ba49deda200534aa3bb80a913ff852fb4bd18274b9f19
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github
    :target: https://github.com/OCA/rest-framework/tree/14.0/rest_log
    :alt: OCA/rest-framework
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/rest-framework-14-0/rest-framework-14-0-rest_log
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=14.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.
Up to version 13.0.1.2.1 of this module,
if shopfloor is installed, log records will be copied from its table.

**Table of contents**

.. contents::
   :local:

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.


Logs activation
~~~~~~~~~~~~~~~

You have 2 ways to activate logging:

* on the service component set `_log_calls_in_db = True`
* via configuration

In the 1st case, calls will be always be logged.

In the 2nd case you can set ``rest.log.active`` param as::

    `collection_name`  # enable for all endpoints of the collection
    `collection_name.usage`  # enable for specific endpoints
    `collection_name.usage.endpoint`  # enable for specific endpoints
    `collection_name*:state`  # enable only for specific state (success, failed)

Changelog
=========

13.0.1.0.0
~~~~~~~~~~

First official version.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/rest-framework/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/rest-framework/issues/new?body=module:%20rest_log%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* Camptocamp
* ACSONE

Contributors
~~~~~~~~~~~~

* Guewen Baconnier <guewen.baconnier@camptocamp.com>
* Simone Orsi <simahawk@gmail.com>

Other credits
~~~~~~~~~~~~~

**Financial support**

* Cosanum
* Camptocamp R&D
* ACSONE R&D

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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.

.. |maintainer-simahawk| image:: https://github.com/simahawk.png?size=40px
    :target: https://github.com/simahawk
    :alt: simahawk

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-simahawk| 

This module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/14.0/rest_log>`_ project on GitHub.

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



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OCA/rest-framework",
    "name": "odoo14-addon-rest-log",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Camptocamp, ACSONE, Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": null,
    "platform": null,
    "description": "========\nREST Log\n========\n\n.. \n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! This file is generated by oca-gen-addon-readme !!\n   !! changes will be overwritten.                   !!\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! source digest: sha256:29a06e439771f569111ba49deda200534aa3bb80a913ff852fb4bd18274b9f19\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n    :target: https://odoo-community.org/page/development-status\n    :alt: Beta\n.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png\n    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html\n    :alt: License: LGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frest--framework-lightgray.png?logo=github\n    :target: https://github.com/OCA/rest-framework/tree/14.0/rest_log\n    :alt: OCA/rest-framework\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n    :target: https://translation.odoo-community.org/projects/rest-framework-14-0/rest-framework-14-0-rest_log\n    :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png\n    :target: https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=14.0\n    :alt: Try me on Runboat\n\n|badge1| |badge2| |badge3| |badge4| |badge5|\n\nWhen exposing REST services is often useful to see what's happening\nespecially in case of errors.\n\nThis module add DB logging for REST requests.\nIt also inject in the response the URL of the log entry created.\n\nNOTE: this feature was implemented initially inside shopfloor app.\nUp to version 13.0.1.2.1 of this module,\nif shopfloor is installed, log records will be copied from its table.\n\n**Table of contents**\n\n.. contents::\n   :local:\n\nConfiguration\n=============\n\nLogs retention\n~~~~~~~~~~~~~~\n\nLogs are kept in database for every REST requests made by a client application.\nThey can be used for debugging and monitoring of the activity.\n\nThe Logs menu is shown only with Developer tools (``?debug=1``) activated.\n\nBy default, REST logs are kept 30 days.\nYou can change the duration of the retention by changing the System Parameter\n``rest.log.retention.days``.\n\nIf the value is set to 0, the logs are not stored at all.\n\nLogged data is: request URL and method, parameters, headers, result or error.\n\n\nLogs activation\n~~~~~~~~~~~~~~~\n\nYou have 2 ways to activate logging:\n\n* on the service component set `_log_calls_in_db = True`\n* via configuration\n\nIn the 1st case, calls will be always be logged.\n\nIn the 2nd case you can set ``rest.log.active`` param as::\n\n    `collection_name`  # enable for all endpoints of the collection\n    `collection_name.usage`  # enable for specific endpoints\n    `collection_name.usage.endpoint`  # enable for specific endpoints\n    `collection_name*:state`  # enable only for specific state (success, failed)\n\nChangelog\n=========\n\n13.0.1.0.0\n~~~~~~~~~~\n\nFirst official version.\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues <https://github.com/OCA/rest-framework/issues>`_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us to smash it by providing a detailed and welcomed\n`feedback <https://github.com/OCA/rest-framework/issues/new?body=module:%20rest_log%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n~~~~~~~\n\n* Camptocamp\n* ACSONE\n\nContributors\n~~~~~~~~~~~~\n\n* Guewen Baconnier <guewen.baconnier@camptocamp.com>\n* Simone Orsi <simahawk@gmail.com>\n\nOther credits\n~~~~~~~~~~~~~\n\n**Financial support**\n\n* Cosanum\n* Camptocamp R&D\n* ACSONE R&D\n\nMaintainers\n~~~~~~~~~~~\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n   :alt: Odoo Community Association\n   :target: https://odoo-community.org\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\n.. |maintainer-simahawk| image:: https://github.com/simahawk.png?size=40px\n    :target: https://github.com/simahawk\n    :alt: simahawk\n\nCurrent `maintainer <https://odoo-community.org/page/maintainer-role>`__:\n\n|maintainer-simahawk| \n\nThis module is part of the `OCA/rest-framework <https://github.com/OCA/rest-framework/tree/14.0/rest_log>`_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n\n\n",
    "bugtrack_url": null,
    "license": "LGPL-3",
    "summary": "Track REST API calls into DB",
    "version": "14.0.1.4.0",
    "project_urls": {
        "Homepage": "https://github.com/OCA/rest-framework"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2ebfc244cc3bfe11fed18e802e4eaf9ce720c63068e826985ad4f0551ce7d459",
                "md5": "1c4e1df536cab4088072976a2bc35cbf",
                "sha256": "4739d1e6e953038a436ca243ceefcb2c20bc60eab5693304d6e09da136e4e7ed"
            },
            "downloads": -1,
            "filename": "odoo14_addon_rest_log-14.0.1.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1c4e1df536cab4088072976a2bc35cbf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 38749,
            "upload_time": "2024-04-16T08:34:48",
            "upload_time_iso_8601": "2024-04-16T08:34:48.536211Z",
            "url": "https://files.pythonhosted.org/packages/2e/bf/c244cc3bfe11fed18e802e4eaf9ce720c63068e826985ad4f0551ce7d459/odoo14_addon_rest_log-14.0.1.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-16 08:34:48",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OCA",
    "github_project": "rest-framework",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "odoo14-addon-rest-log"
}
        
Elapsed time: 0.34125s