You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add handler for new /duration endpoint to update logger level tempora… (#383)
* Add handler for new /duration endpoint to update logger level temporarily and update OpenAPI spec
* refactor: change the new endpoint name
* Refactor POST /logging-manager to support temporary log level via query param with duration in body; updated OpenAPI specs and README
---------
Co-authored-by: João Araújo <joao.p.araujo@feedzai.com>
|`/q/logging-manager`|`GET`| Returns the list of all loggers, with information about the configured and effective level |
23
-
|`/q/logging-manager?loggerName={loggerName}`|`GET`| Returns the logger specified by this name, with information about the configured and effective level |
24
-
|`/q/logging-manager`|`POST`| Changes the log level of the specified logger |
25
-
|`/q/logging-manager/levels`|`GET`| Get all the available level |
|`/q/logging-manager`|`GET`| Returns the list of all loggers, with information about the configured and effective level |
23
+
|`/q/logging-manager?loggerName={loggerName}`|`GET`| Returns the logger specified by this name, with information about the configured and effective level |
24
+
|`/q/logging-manager`|`POST`| Changes the log level of the specified logger |
25
+
|`/q/logging-manager?temporary=true`|`POST`| Temporarily changes the log level of the specified logger for a given duration, then restores it to the original level |
26
+
|`/q/logging-manager/levels`|`GET`| Get all the available level |
26
27
27
28
## Security
28
29
Security of endpoints is important, and we do not want to allow unknown people to know (or worse, change!) the log levels of
0 commit comments