Mercurial > hg > orthanc-book
comparison 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 |
comparison
equal
deleted
inserted
replaced
348:d8359cecdc89 | 367:ecdd754e16ba |
---|---|
86 ^^^^^^^^^^^^ | 86 ^^^^^^^^^^^^ |
87 | 87 |
88 The command-line to be used is:: | 88 The command-line to be used is:: |
89 | 89 |
90 $ sudo docker run -a stderr -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc --verbose /etc/orthanc > Orthanc.log 2>&1 | 90 $ sudo docker run -a stderr -p 4242:4242 -p 8042:8042 --rm jodogne/orthanc --verbose /etc/orthanc > Orthanc.log 2>&1 |
91 | |
92 Change the log level while Orthanc is running | |
93 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
94 | |
95 Starting from Orthanc 1.6.0, you can also change the log level while Orthanc is running through the Rest API:: | |
96 | |
97 $ curl -X PUT http://localhost:8042/tools/log-level -d "verbose" | |
98 $ curl -X PUT http://localhost:8042/tools/log-level -d "trace" | |
99 $ curl -X PUT http://localhost:8042/tools/log-level -d "default" | |
100 |