Mercurial > hg > orthanc-book
diff Sphinx/source/faq/log.rst @ 367:ecdd754e16ba
Rest API to change log-level
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 01 Apr 2020 22:44:38 +0200 |
parents | a5f7fc9fb611 |
children | 6979ebaae833 |
line wrap: on
line diff
--- a/Sphinx/source/faq/log.rst Fri Mar 27 12:20:40 2020 +0100 +++ b/Sphinx/source/faq/log.rst Wed Apr 01 22:44:38 2020 +0200 @@ -88,3 +88,13 @@ The command-line to be used is:: $ sudo docker run -a stderr -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc --verbose /etc/orthanc > Orthanc.log 2>&1 + +Change the log level while Orthanc is running +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Starting from Orthanc 1.6.0, you can also change the log level while Orthanc is running through the Rest API:: + + $ curl -X PUT http://localhost:8042/tools/log-level -d "verbose" + $ curl -X PUT http://localhost:8042/tools/log-level -d "trace" + $ curl -X PUT http://localhost:8042/tools/log-level -d "default" +