Skip to content

Commit 6ed6416

Browse files
authored
Update Docs (#3541)
* Update Docs - Add advanced sidebar item - Add --log-level update #3538 * fix
1 parent a38a4a3 commit 6ed6416

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/docs/customization-extensibility/logging.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,12 @@ If you want to override this, you can inherit from `TUnitLogger` or `DefaultLogg
2020
return logLevel >= LogLevel.Error;
2121
}
2222
```
23+
24+
## Log Level Command Line
25+
If you are executing tests via the command line, you can set the log level via the `--log-level` argument:
26+
27+
```
28+
dotnet run --log-level Warning
29+
```
30+
31+
The above will show only logs that are `Warning` or higher (e.g. `Error`, `Critical`) while executing the test.

docs/sidebars.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,15 @@ const sidebars: SidebarsConfig = {
147147
'reference/test-configuration',
148148
],
149149
},
150+
{
151+
type: 'category',
152+
label: 'Advanced',
153+
items: [
154+
'advanced/exception-handling',
155+
'advanced/extension-points',
156+
'advanced/performance-best-practices',
157+
],
158+
},
150159
{
151160
type: 'category',
152161
label: 'Migration Guides',

0 commit comments

Comments
 (0)