Skip to content

Commit 314f88e

Browse files
[docs] Add information about trace verbosity (#18093)
###### Microsoft Reviewers: [Open in CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/Azure/bicep/pull/18093)
1 parent 99085bc commit 314f88e

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/troubleshooting.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## Tracing
1+
# Tracing
2+
3+
## Enabling
24
To collect troubleshooting information, it can be useful to enable detailed tracing. To do this, run one of the following commands in your console window before invoking Bicep:
35

46
1. (Mac/Linux) Run the following:
@@ -9,3 +11,16 @@ To collect troubleshooting information, it can be useful to enable detailed trac
911
```powershell
1012
$env:BICEP_TRACING_ENABLED = $true
1113
```
14+
15+
## Controlling Verbosity
16+
17+
The default verbosity for tracing is "basic". In addition to [enabling tracing](#enabling), you can also set the verbosity to "full" to capture all tracing details:
18+
19+
1. (Mac/Linux) Run the following:
20+
```sh
21+
export BICEP_TRACING_VERBOSITY=full
22+
```
23+
1. (Windows) Run the following in a PowerShell window:
24+
```powershell
25+
$env:BICEP_TRACING_VERBOSITY = "full"
26+
```

0 commit comments

Comments
 (0)