You can set and reset log levels for Remote Desktop features and components using the DCT script.

Set and reset log levels as described here. To see which remote desktop features you can obtain logging information for, see Using DCT to Collect Logs for Remote Desktop Features and Components.

Note: WebRTC Redirection code only has two logging levels, INFO and TRACE, but the DCT script is set up to handle four: INFO, DEBUG, TRACE, VERBOSE. When set by script, INFO corresponds to INFO and DEBUG, TRACE, and VERBOSE all correspond to TRACE. See https://kb.vmware.com/s/article/1025887 for more information.

Set Log Levels

Change directory and execute the script using argument -x to pass the desired feature and level (TRACE).

Linux:

cd /usr/bin/
sudo vmware-view-log-collector -x <desired feature>:trace

Mac:

cd /Applications/VMware Horizon Client.app/Contents/Library/dct
sudo ./HorizonCollector.sh -x <desired feature>:trace

Windows:

cd C:\Program Files (x86)\VMware\VMware Horizon View Client\DCT

To set to a different log level, replace TRACE in the above command with your desired log level (INFO, TRACE, DEBUG, VERBOSE).

Reset Log Levels

Execute the script, passing the reset flag ( -r)
  • Linux: sudo vmware-view-log-collector -r
  • Mac: sudo ./HorizonCollector.sh -r
  • Windows: support.bat -r

This removes any set values and resets to default log levels, which correspond to INFO.

Collect Logs

Execute the script, using argument -c and then the desired feature. (To collect for all, replace <desired feature> with All).
  • Linux: sudo vmware-view-log-collector -c <desired feature>
  • Mac: sudo ./HorizonCollector.sh -c <desired feature>
  • Windows: support.bat -c <desired feature>
Note: You must reconnect in order for log level changes to take effect.