Enabling Virtual Desktop Agent (VDA) logging (CTX117452):
- Change your vDisk to Private mode and boot your template machine
- Log in with an admin account
- Navigate to %ProgramFiles%\Citrix\Virtual Desktop Agent
- Backup WorkstationAgent.exe.config
- Open the configuration file with a program such as Notepad
- Locate the following section <appSettings> section (Near the top of the config file) and update as follows:
- <add key=”LogToCDF” value =”1”/>
- <add key="LogFileName" value ="D:\XDLogs\vda_log.log"/>
- <add key="OverwriteLogFile" value ="1"/>
- Save and close the file
- Restart the Citrix Desktop service or reboot your template machine and confirm that the log file gets created
Enabling Desktop Delivery Controller (DDC) logging (CTX117452) with XenDesktop 5.6:
- Log into your DDC with an admin account
- Navigate to %ProgramFiles%\Citrix\Broker\Service
- Backup BrokerService.exe.config
- Open the configuration file with a program such as Notepad
- Locate the following section <appSettings> section (Near the top of the config file) and update as follows:
- <add key="LogToCDF" value ="1"/>
- <add key="LogFileName" value ="D:\XDLogs\controller_log.log"/>
- <add key="OverwriteLogFile" value ="1"/>
- Save and close the file
- With XenDesktop 5.6 I did not have to enable logging for CdsPoolMgr.exe.config as outlined in CTX117452
- Restart the Citrix Broker Service (This will cause any virtual desktops connected to the server to re-register with another controller)
Enabling PortICA logging (CTX118837):
- Change your vDisk to Private mode and boot your template machine
- Log in with an admin account
- Navigate to %ProgramFiles%\Citrix\ICAService\XML (If the XML folder does not exist, create one)
- Create an new XML file called PorticaConfig.XML
- Paste the following into the file: <?xml version="1.0" encoding="utf-8"?>
- Save and close the file
- Restart the Citrix ICA service or reboot your template machine
<Config xmlns="Portica.xsd">
<Portica>
<LogFile>
<LogLevel>5</LogLevel>
</LogFile>
<CdfTrace>
<LogLevel>5</LogLevel>
</CdfTrace>
<FunctionTrace>
<LogLevel>5</LogLevel>
</FunctionTrace>
</Portica>
</Config>
There is also a logging tool that Citrix has published as outlined in CTX127492 that can enable more logging however I have solved most of my issues using VDA, DDC and PortICA logging. Regardless of how you setup logging a great utility to help you read them is Trace32.exe from the ConfigMgr toolkit. Download and install the tools and then open your log files with Trace – your eyes will thank you.