Hello!
Inside Python scripts, is it possible to enable orthanc.LogInfo without starting Orthanc in verbose mode?
Hello!
Inside Python scripts, is it possible to enable orthanc.LogInfo without starting Orthanc in verbose mode?
Hello Diego,
Do you mean that you want to change the log level from the python script itself ? This can be done through the Rest API.
Otherwise, you would have to use LogWarning instead.
HTH,
Alain.
Hi Alain.
I would like to set Orthanc log level to INFO to see my orthanc.LogInfo definitions, but not Orthanc’s.
I ended up switching to Python’s logging lib, and I configure the log like this:
import logging
logging.basicConfig(level = logging.INFO)
Then I use it like this:
logging.info("FYI")