Logging


Contents

  1. DicomObjects.COM
  2. DicomObjects.NET
  3. 32 BIT
  4. 64 BIT
  5. Sensible level values for logging

DicomObjects log files are extremely important and useful for analysing DICOM network and query/retrieve problems.

There are several ways to turn on logging in DicomObjects.

DicomObjects.NET

Use DicomGlobal.LogToFile method in your program. This should appear in a Form Load or similar startup method.

  DicomGlobal.LogToFile("C:\\DicomLogs",level);

Alternatively, without having to modify your source code, you can use the DicomObjects.Config file with the following line

  LogToFile "c:\Logs", 0x3F

DicomObjects.COM

To turn on logging programmatically:

    
  Dim g As New DicomGlobal
  g.RegWord("Log") = 1	
  g.RegWord("LogLevel") = 63
  g.RegString("LogLocation") = "C:\DicomLogs\"
	

To set logging in Windows Registry

32 BIT:

To make log files set the following registry values: (both DWORDs)

Logs should then appear as D.O.xxxxx.log in C:\DicomLogs\ folder.

64 BIT:

Slightly different location in the registry for 64 bit Machines

To make log files set the following registry values: (both DWORDs)

Logs should then appear as D.O.xxxxx.log in C:\DicomLogs

Sensible level values for logging

Once a log file is generated, you can send it to us for checking. Please use our secure upload facility on Dropbox. Your uploads will be automatically deleted once the case is closed.