зеркало из https://github.com/microsoft/BuildXL.git
Merged PR 647298: Add wiki documentation for errorregex
Add wiki documentation for errorregex
This commit is contained in:
Родитель
ac51645a65
Коммит
15ad8747f4
|
@ -2,7 +2,7 @@ By default, BuildXL will display informational, warning, and error logs to the c
|
||||||
|
|
||||||
There are various options that can change file logging:
|
There are various options that can change file logging:
|
||||||
|
|
||||||
# Warnings and errors
|
# Warning and error log files
|
||||||
## /warninglog
|
## /warninglog
|
||||||
Routes all warnings to an additional log file. Warnings will still get logged to the primary log file.
|
Routes all warnings to an additional log file. Warnings will still get logged to the primary log file.
|
||||||
|
|
||||||
|
@ -35,6 +35,13 @@ Sets whether warnings are promoted to errors. `+` indicates warnings are set as
|
||||||
/warnAsError-:42,867,5309
|
/warnAsError-:42,867,5309
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Warnings and Errors: filtering and selection
|
||||||
|
Whether a process fails is determined by whether it exits with an exit code indicating success, and whether it produces all declared output files. The full standard output and standard error will be included in the error message for the failed process. Some processes emit output that is not relevant to the failure. In these cases it is useful to filter the stdout and stderr to only display a relevant portion of that output. This is configured in DScript on a per-process basis by setting the `errorregex` property. The `enableMultiLineErrorScanning` property controls how that regex is applied.
|
||||||
|
|
||||||
|
Warnings are determined only by applying a regex to output streams. There is a corresponding `warnRegex` property which can be overridden to control this behavior. The default regex is defined in [Warning.cs](../../../Public/Src/Utilities/Utilities/Warning.cs)
|
||||||
|
|
||||||
|
See [Transformer.Execute.dsc](../../../Public/Sdk/Public/Transformers/Transformer.Execute.dsc) for more details.
|
||||||
|
|
||||||
# Log routing
|
# Log routing
|
||||||
## /customlog
|
## /customlog
|
||||||
Routes specific messages to an additional log. Messages will continue to be written in the primary log. Can be applied to any BuildXL error code regardless of severity.
|
Routes specific messages to an additional log. Messages will continue to be written in the primary log. Can be applied to any BuildXL error code regardless of severity.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче