Skip to content

Interrogating the Logs ​

Each service writes its own log file:

ServiceLog file
DICOM2ORM%ProgramData%\Flux Inc\DICOM7\DICOM2ORM\logs\dicom7-dicom2orm.log
DICOM2ORU%ProgramData%\Flux Inc\DICOM7\DICOM2ORU\logs\dicom7-dicom2oru.log
ORM2DICOM%ProgramData%\Flux Inc\DICOM7\ORM2DICOM\logs\dicom7-orm2dicom.log
ORU2DICOM%ProgramData%\Flux Inc\DICOM7\ORU2DICOM\logs\dicom7-oru2dicom.log
ORU2REPORT%ProgramData%\Flux Inc\DICOM7\ORU2REPORT\logs\dicom7-oru2report.log
HL72HL7%ProgramData%\Flux Inc\DICOM7\HL72HL7\logs\dicom7-hl72hl7.log

If a service runs with --path, its log is in the logs folder below that path.

Rotation ​

  • Each file grows to at most 10 MB, then a new file is started (dicom7-<service>_001.log, _002.log, …).
  • The 7 most recent files are kept; older files are deleted automatically.
  • The services log at Information level and above.

When the service runs from a console, the same entries are also written to the console.

Format ​

Each entry has a timestamp with UTC offset, a three-letter level, and the message:

text
2026-10-30 09:15:02.481 -04:00 [INF] Loading configuration from path: C:\ProgramData\Flux Inc\DICOM7\ORM2DICOM\config.yaml
2026-10-30 09:15:02.655 -04:00 [INF] Set cache folder to: C:\ProgramData\Flux Inc\DICOM7\ORM2DICOM\cache

Levels are INF (information), WRN (warning), ERR (error), and FTL (fatal: the service stopped).

Searching the logs ​

PowerShell:

powershell
cd "C:\ProgramData\Flux Inc\DICOM7\ORU2DICOM\logs"

# Warnings, errors and fatal entries
Select-String -Path dicom7-*.log -Pattern '\[(WRN|ERR|FTL)\]'

# Everything about one message control ID or accession number
Select-String -Path dicom7-*.log -Pattern 'ACC12345'

# Follow the live log
Get-Content dicom7-oru2dicom.log -Wait -Tail 50

Command prompt:

cmd
findstr /C:"[ERR]" /C:"[FTL]" "C:\ProgramData\Flux Inc\DICOM7\DICOM2ORM\logs\dicom7-*.log"

Useful entries ​

EntryMeaning
Loading configuration from path: …The configuration file the service used.
Configuration file not found: …No config.yaml at the expected path; the service is running on built-in defaults.
Error loading configuration fileconfig.yaml could not be parsed; the service is running on built-in defaults.
Set cache folder to: …The cache folder in use.
Failed to connect to HL7 receiver <host>:<port>DICOM2ORM or DICOM2ORU could not reach the HL7 receiver. The message stays in the cache and is retried.
HL7 server rejected message: …The HL7 receiver answered with a response the sender treats as a rejection.
No ACK received (timeout), but message was sent. Considering successfulThe HL7 receiver did not answer in time; the sender treated the message as delivered. See the HL7 Conformance Statement.
Empty response from receiver, but message was sent. Considering successfulThe HL7 receiver closed without answering; the sender treated the message as delivered.
… Please check the template and restart …An HL7 template could not be loaded. Fix the template and restart the service.
Capture-only mode is active …HL72HL7 is storing messages but not forwarding them.
Quarantined <n> abandoned staging records during startupHL72HL7 found incomplete captures from an interrupted shutdown. See HL72HL7.

Protected health information

The logs and the cache contain patient data from the messages and images that pass through the services. Restrict access to %ProgramData%\Flux Inc\DICOM7 and handle exported logs as protected information.