Support & Documentation
Follow

Setting Up Logging With Web and Worker Roles

If you are wanting to log directly via the Stackify API and want to control App Settings configuration from the Service Definition file, follow the steps below:

The Service Definition File

The Service Definition File

You will need to define the following properties in the ConfigurationSettings section of the Service Definition file as shown above:

<Setting name="Stackify.ApiKey"/>
<Setting name="Stackify.AppName"/>
<Setting name="Stackify.Environment"/> 

These three settings will be read from the Service Configuration files.

The Local and Cloud Service Configuration Files

In the ServiceConfiguration.Local.cscfg and ServiceConfiguration.Cloud.cscfg files you will give values to the three Setting names you created in the ServiceDefinition.csdef file:

<Setting name="Stackify.ApiKey" value="YOUR_APIKEY"/>
<Setting name="Stackify.AppName" value="YOUR_APP_NAME"/> 
<Setting name="Stackify.Environment" value="YOUR_ENVIRONMENT"/> 
 

Note: By making the Environment names of the Local file and Cloud file different you will see these different environments in Stackify.  For example, you can name the Environment name of the ServiceConfiguration.Local file "Dev" and the name of the ServiceConfiguration.Cloud file "Prod" to differentiate the two deployments.  

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk