Troubleshooting Deploy, Run and Usage

Container Creation with Auto Packager

By default, logs for the Auto Packager are created in C:\ProgramData\Cloudhouse\packager, with the name datetimestamp-CloudhouseLog.txt.

Redirection and virtualization logs generated by AAV during the Auto Packaging process are captured in $path_to_container\AavLogs\AppAcceleratorV-$PIDd.cll, where $path_to_container is the path the user provided to create the Container in.

Launching Applications Manually

To  test a packaged applications launches successfully without using the  deploy and run commands you can launch the application manually, this is  helpful on the packaging VM after you have created the package.

Logging for Deployment, Run and Usage Tools

The  deployment, run and usage executable tools all create, and update, log  files in their current working directories, the deployment tool will  also log to the console.

Deployment Tool

Cloudhouse.Container.Deployment.exe will create DeploymentWorkflowLog.txt in the Container's folder that you are deploying from. 

Run Tool

Cloudhouse.Container.Run.exe will create RunWorkflowLog.txt in the directory the Container is deployed to, this is the location specified by the deployment tools /deploydir

Usage Tool

Cloudhouse.Container.Usage.exe will create RunUsageLog.txt in the directory the Container is deployed to, this is the location specified by the deployment tools /deploydir

Log Config

Logging  configuration is set in Cloudhouse.Container.Deployment.conf,  Cloudhouse.Container.Run.conf and Cloudhouse.Container.Usage.conf. By default, the log files will roll over at 1MB, and use log level of INFO.  Set <level value="DEBUG"/> to increase the verbosity of the logs. 

To change the location of the log files, specified in <file value=", you can use the following variables to write to user specified locations, for example ${APPDATA}, and ${UserProfile} will write to %appdata% and %userprofile%. 

Please refer to Log4j documentation for more information.

Config

<log4net>
   <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
     <file value="RunWorkflowLog.txt" />
     <appendToFile value="true" />
     <rollingStyle value="Size" />
     <maxSizeRollBackups value="10" />
     <maximumFileSize value="1MB" />
     <staticLogFileName value="true" />
     <layout type="log4net.Layout.PatternLayout">
       <conversionPattern value="%date %-5level %logger - %message%newline" />
     </layout>
   </appender>
   <root>
     <level value="INFO" />
     <appender-ref ref="RollingFileAppender" />
   </root>
 </log4net>
Was this article helpful?

Can't find what you're looking for?

Contact Support