mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 08:52:02 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,33 @@
|
|||
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)
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
||||
* Simone Orsi <simahawk@gmail.com>
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
**Financial support**
|
||||
|
||||
* Cosanum
|
||||
* Camptocamp R&D
|
||||
* ACSONE R&D
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
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.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
13.0.1.0.0
|
||||
~~~~~~~~~~
|
||||
|
||||
First official version.
|
||||
Loading…
Add table
Add a link
Reference in a new issue