Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ The options you can choose from include:

```dotnetcli
--diagnostic Enable the diagnostic logging. The default log level is 'Trace'. The file will be written in the output directory with the name log_[MMddHHssfff].diag
--diagnostic-filelogger-synchronouswrite Force the built-in file logger to write the log synchronously. Useful for scenario where you don't want to lose any log (i.e. in case of crash). Note that this is slowing down the test execution.
--diagnostic-synchronous-write Force the built-in file logger to write the log synchronously. Useful for scenario where you don't want to lose any log (i.e. in case of crash). Note that this is slowing down the test execution.
--diagnostic-output-directory Output directory of the diagnostic logging, if not specified the file will be generated inside the default 'TestResults' directory.
--diagnostic-output-fileprefix Prefix for the log file name that will replace '[log]_.'
--diagnostic-file-prefix Prefix for the log file name that will replace '[log]_.'
--diagnostic-verbosity Define the level of the verbosity for the --diagnostic. The available values are 'Trace', 'Debug', 'Information', 'Warning', 'Error', and 'Critical'
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ The following [platform options](./microsoft-testing-platform-intro.md#options)

- `--info`
- `--diagnostic`
- `⁠-⁠-⁠diagnostic-⁠filelogger-⁠synchronouswrite`
- `--diagnostic-synchronous-write`
- `--diagnostic-verbosity`
- `--diagnostic-output-fileprefix`
- `--diagnostic-file-prefix`
- `--diagnostic-output-directory`

You can also enable the diagnostics logs using the environment variables:
Expand Down
6 changes: 3 additions & 3 deletions docs/core/testing/microsoft-testing-platform-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,17 @@ The list below described only the platform options. To see the specific options

Enables the diagnostic logging. The default log level is `Trace`. The file is written in the output directory with the following name format, `log_[MMddHHssfff].diag`.

- **`--diagnostic-filelogger-synchronouswrite`**
- **`--diagnostic-synchronous-write`**

Forces the built-in file logger to synchronously write logs. Useful for scenarios where you don't want to lose any log entries (if the process crashes). This does slow down the test execution.

- **`--diagnostic-output-directory`**

The output directory of the diagnostic logging, if not specified the file is generated in the default _TestResults_ directory.

- **`--diagnostic-output-fileprefix`**
- **`--diagnostic-file-prefix`**

The prefix for the log file name. Defaults to `"log_"`.
The prefix for the log file name. Defaults to `"log"`.

- **`--diagnostic-verbosity`**

Expand Down