CmdID / PowerShell / Cmdlets / Enable
Enable-WebRequestTracing
Enables request tracing for a website. Windows Server PowerShell reference
From the Windows Server PowerShell reference 6 parameters Its page in the reference
Parameters
-CustomActionsSpecifies an action to take when a request tracing log file is generated.-DirectorySpecifies the directory in which request tracing log files are stored.-MaxLogFileSizeSpecifies the maximum file size of a single request tracing log file.-MaxLogFilesSpecifies the maximum number of log files to store.-NameSpecifies the name of the site for which tracing is enabled.-StatusCodesSpecifies the status codes for which a default request tracing rule is configured.