Skip to content

Commit

Permalink
Updating readme with troubleshooting section (Azure#21205)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpodwysocki authored Apr 14, 2022
1 parent a5d1c64 commit 1c9a47b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sdk/appconfiguration/app-configuration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,20 @@ async function run() {
run().catch((err) => console.log("ERROR:", err));
```

## Troubleshooting

### Logging

Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:

```javascript
import { setLogLevel } from "@azure/logger";

setLogLevel("info");
```

For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).

## Next steps

The following samples show you the various ways you can interact with App Configuration:
Expand Down

0 comments on commit 1c9a47b

Please sign in to comment.