Question:
How to enable the debug logging for DocuWare Desktop?
Solution:
Starting with the DoocuWare version 6.7 there is an easier way to crate the Debug logging for the DocuWare Desktop:
How to enable debug logging for DocuWare Desktop?
To enable the debug logging for DocuWare Desktop (DocuWare Printer, DocuWare Import, DocuWare Scan App) please follow these instructions:
- Stop the DocuWare Desktop Apps and the DocuWare Desktop Service
- Make a backup of these files:
"...\DocuWare\Desktop\DocuWare.DesktopService.exe.config"
"...\DocuWare\Desktop\DocuWare.Desktop.exe.config"'
"...\DocuWare\Desktop\Plugins\Scanner\DocuWare.Desktop.CaptureService.Host.exe.config"
- Open the following files:
"...\DocuWare\Desktop\DocuWare.DesktopService.exe.config"
"...\DocuWare\Desktop\DocuWare.Desktop.exe.config"
"...\DocuWare\Desktop\Plugins\Scanner\DocuWare.Desktop.CaptureService.Host.exe.config"
- Amend these values:
- Docuware version 5.1c Service Pack 2
- DocuWare.DesktopService.exe.config (DocuWare DesktopService)
<add key="LogLevel" value="Debug" />
<add key="LogTarget" value="C:\temp\DWDesktopService.log" />
- DocuWare.Desktop.CaptureService.Host.exe.config (Scanner)
<log4net>
<appender ...
<file value="C:\temp\DWCaptureService.log" />
...
<root>
<level value="DEBUG"/>
- DocuWare.Desktop.exe.config (DocuWare Deskop Apps)
<add key="LogLevel" value="Debug" />
<add key="LogTarget" value="C:\temp\DWDesktop.log" />
- DocuWare.DesktopService.exe.config (DocuWare DesktopService)
- DocuWare versions 6 - 6.6
- DocuWare.DesktopService.exe.config (DocuWare Desktop Service)
<appender name="LogFileAppender"
<file value="C:\temp\DWDesktopService.log" />
...
<root>
<level value="DEBUG"/>
- DocuWare.DesktopService.exe.config (OCR)
<appender name="OCRLogFileAppender"
<file value="C:\temp\OCRServiceDesktop.log" />
...
<logger name="OCRLogger">
<level value="DEBUG" />
- DocuWare.Desktop.CaptureService.Host.exe.config (Scanner)
<log4net>
<appender ...
<file value="C:\temp\DWCaptureService.log" />
...
<root>
<level value="DEBUG"/>
- DocuWare.Desktop.exe.config (DocuWare Desktop Apps)
<log4net>
<appender ...
<file value="C:\temp\DWDesktop.log" />
...
<root>
<level value="DEBUG"/>
- DocuWare.DesktopService.exe.config (DocuWare Desktop Service)
- Docuware version 5.1c Service Pack 2
- Make sure that the folder C:\temp exists or create it
- Start the DocuWare Desktop Apps and DocuWare Desktop Service
Also for the DocuWare Printer driver a debug log can be created. To enable this DocuWare Printer driver debug log please follow this steps:
- Pleae create a new string with the name DWPrinterDriverLogPath in the following registry key(s):
- x86: HKEY_LOCAL_MACHINE\SOFTWARE\DocuWare\Desktop
- x64: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\DocuWare\Desktop\
Important: Please keep in mind that you've to create both registry keys on a 64 bit system.
- As value please enter the path for the log files (with a backslash in the end) e.g.: c:\temp\
- Furthermore you have to create the following registry keys:
- x86: HKEY_LOCAL_MACHINE\SOFTWARE\soft Xpansion\P2D Printers
x64: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\soft Xpansion\P2D Printers - Create a new DWORD value with the name LogLevel with the value 1
- Create a new string with the name LogFile and the value C:\temp\DwPrinterDriver.log
- x86: HKEY_LOCAL_MACHINE\SOFTWARE\soft Xpansion\P2D Printers
- Restart the Windows service print spooler
In the folder C:\temp\ the folowing log files will be created:
- DWDesktopService.log
- DWCaptureService.log
- OCRServiceDesktop.log (starting with the DocuWare version 6)
- DWDesktop.log
- DWPrinterDriver.log
To disable the logging stop the DocuWare Desktop Apps and the DocuWare Desktop Service, replace the config files with the .config files you saved as a backup and start everything again.