Citrix Virtual Apps and Desktops SDK

Enable-Citrixtrace

Enables saving of trace files on disk at a given persistDirectory.

Syntax

Enable-CitrixTrace -Listen <String> [<CommonParameters>]
<!--NeedCopy-->

Detailed Description

This cmdlet Enables or disables saving of trace files on disk at a given persistDirectory:

Parameters

Name Description Required? Pipeline Input Default Value
Listen Specify the parameters passed to listeners. Json-formatted. true false  

Input Type

Return Values

Examples

Example 1: Configure Citrix Call Home For Saving Traces On Disk

C:\PS>Enable-CitrixTrace -Listen '{"trace":{"enabled": true,"persistDirectory": "C:\\Users\\Public","maxSizeBytes": 1000000, "sliceDurationSeconds": 300}}'
<!--NeedCopy-->

Enables saving of trace files on disk at a given persistDirectory. Max size of trace files stored is configured via maxSizeBytes and sliceDurationSeconds defines duration in seconds of the slice/block of traces.

Enable-Citrixtrace