How to enable Weasis logging?
Logs are available either in the Java console or in Weasis log files.
- By displaying the Java console:
- By writing to log files:
Logging could be activated int the config.properties file located in the /weasis/conf directory of weasis portable or in the conf directory of weasis.war. Adapt the following lines:# Set the logging levels for OSGI framework 0=None / 1(default)=Error / 2=Warning / 3=Information / 4=Debug felix.log.level=3 # This may be any of the defined logging levels DEBUG, INFO, WARN, ERROR and FATAL. org.apache.sling.commons.log.level=INFO org.apache.sling.commons.log.file=${dollar}{felix.cache.rootdir}/.weasis/log/log org.apache.sling.commons.log.file.size=10MB
Is it possible to download DICOM files without having a WADO (Web Access to DICOM Persistent Objects) server?
Yes, but a WADO server is recommended. Downloading DICOMs can be achieved by:
- Bulding an xml file and using the field DirectDownloadFile where the final URL is the combination of wadoURL + DirectDownloadFile:
<wado_query xmlns= "http://www.weasis.org/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" wadoURL="http://external.server/images/" ... <Instance SOPInstanceUID="1.2.250.1.59.453.859.1903126635.4828.1241792772.4.3.204" InstanceNumber="35" DirectDownloadFile"image_4563173729424543.dcm" />
- Adding the following parameter in the argument tag of the JNLP or as an argument of the weasis-portable executable file:
$dicom:get -r http://external.server/images/img1.dcm http://external.server/images/img2.dcm