Question: In *iOS 10* Apple has made a change that NSLog() output is not emitted in distributed apps (enterprise, app-store). 

Note that when running from Xcode, NSLog() works fine.

Is there a way to force debug for all apps (very useful under beta testing phase)?

Some clues appear here: [NSLog on devices in iOS 10 / Xcode 8 seems to truncate? Why？](https://stackoverflow.com/questions/39584707/nslog-on-devices-in-ios-10-xcode-8-seems-to-truncate-why)

However, can we have a clear implementation for this?

Answer: 
I think you need to use the `StorageCredentials` class. Here is a sample:

```
StorageCredentials accountSAS = new StorageCredentials(sasToken);
CloudStorageAccount accountWithSAS = new CloudStorageAccount(accountSAS, "account-name", endpointSuffix: null, useHttps: true);
CloudTableClient tableClientWithSAS = accountWithSAS.CreateCloudTableClient();

```
You could refer to the following sample code to use table service endpoint and Shared Access Signature to initialize a new instance of the CloudTableClient class by using `new CloudTableClient(Uri, StorageCredentials)`. 

```
StorageCredentials creds = new StorageCredentials("your SAStoken");

CloudTableClient tableClient = new CloudTableClient(new Uri("your table endpoint"), creds);

```