Enabling Logging for XenDesktop

Enabling Logging on the Virtual Desktop Agent

By default, logging is disabled for XenDesktop. Log files can be obtained from the Virtual Desktop Agent after manually enabling the logging. An administrator can use the following procedure to enable logging on the Virtual Desktop Agent.

  1. Manually create a Citrix Desktop Server directory on the virtual desktop.
  2. Browse to Program FilesCitrixVirtual Desktop Agent and open WorkstationAgent.exe.config using a text editor.
  3. Under the appSettings node, add the lines:
    <add key="LogToCDF" value ="1"/>
    <add key="LogFileName" value ="c:cdslogname.log"/>

    Replace logname with the name of the log file.

  4. Restart the desktop to initiate logging.

Enabling Logging for the Desktop Delivery Controller

By default, logging is disabled for XenDesktop. Log files can be obtained from the Desktop Delivery Controller after manually enabling logging. An administrator can use the following procedure to enable logging on the Desktop Delivery Controller.

  1. Manually create a Citrix Desktop Server directory on the Desktop Delivery Controller. Change the security settings on the directory to allow the Network Service “Full Control”.
  2. Browse to Program FilesCitrixDesktop Delivery Controller and open CdsController.exe.config using a text editor.
  3. Under the appSettings node, add the key:
    <add key="LogToCDF" value ="1"/>
    <add key="LogFileName" value="c:cdscontroller_logname.log"/>

    Replace controller_logname with the name of the log file.

  4. Restart the Desktop Delivery Controller to initiate logging.