Troubleshooting Deploy, Run and Usage

26/06/2019 Cliff Hobbs   ID: 266750

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 the following directories %LocalAppData%\Cloudhouse\AppName, and on XP to %UserProfile%\Local Settings\Application Data\Cloudhouse\AppName\ into the following file AppAcceleratorV-$PIDd.cll.

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 the following configuration files:

  • Cloudhouse.Container.Deployment.config
  • Cloudhouse.Container.Run.config
  • Cloudhouse.Container.Usage.config

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 log4net 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>
Source:
Was this article helpful?

Table of Contents

    Can't find what you're looking for?

    Contact Support